Merge branch 'CKing-patch-3' into indev

This commit is contained in:
meew0
2016-01-16 16:00:05 +01:00

View File

@@ -93,7 +93,7 @@ export default class Client extends EventEmitter {
// def destroy
destroy(callback = (/*err, {}*/) => { }) {
this.internal.logout()
return this.internal.logout()
.then(() => this.internal.disconnected(true))
.then(dataCallback(callback), errorCallback(callback));
}