fix(disconnect) Fix quick disconnect errors
This commit is contained in:
parent
36d95ed51f
commit
1790c71c80
|
@ -411,6 +411,10 @@ function disconnect() {
|
|||
return Promise.resolve();
|
||||
};
|
||||
|
||||
if (!connection) {
|
||||
return onDisconnected();
|
||||
}
|
||||
|
||||
return connection.disconnect().then(onDisconnected, onDisconnected);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue