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 // def destroy
destroy(callback = (/*err, {}*/) => { }) { destroy(callback = (/*err, {}*/) => { }) {
this.internal.logout() return this.internal.logout()
.then(() => this.internal.disconnected(true)) .then(() => this.internal.disconnected(true))
.then(dataCallback(callback), errorCallback(callback)); .then(dataCallback(callback), errorCallback(callback));
} }