AsyncReply is Promise

This commit is contained in:
ahmed committed 2019-07-21 05:26:43 +03:00
1 parent 3ac2eccf0f
commit 399a096c58
4 files changed
+30 -42

No files matched your search

+2 -2
View File
@@ -201,8 +201,8 @@ export default class DistributedConnection extends IStore {
this.socket.onclose = function(event)
{
if (this.openReply)
this.openReply.triggerError();
if (this.connection.openReply)
this.connection.openReply.triggerError(0, 0, "Host not reachable");
self.close(event);
};