*Update dist

This commit is contained in:
Derrick Hammer 2022-08-30 22:43:05 -04:00
parent ac8b1d4bf2
commit 70a6092079
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,6 @@ export default class StreamingRpcQuery extends SimpleRpcQuery {
if (timer && timer.close) { if (timer && timer.close) {
clearTimeout(timer); clearTimeout(timer);
} }
socket.end();
const response = unpack(res); const response = unpack(res);
if (response && response.error) { if (response && response.error) {
this._errors[relay] = response.error; this._errors[relay] = response.error;
@ -44,6 +43,7 @@ export default class StreamingRpcQuery extends SimpleRpcQuery {
if (response?.data.done) { if (response?.data.done) {
this._responses[relay] = {}; this._responses[relay] = {};
resolve(null); resolve(null);
socket.end();
return; return;
} }
this._options.streamHandler(response?.data.data); this._options.streamHandler(response?.data.data);