Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions src/kuzzle.js
Original file line number Diff line number Diff line change
Expand Up @@ -1032,8 +1032,6 @@ Kuzzle.prototype.listIndexes = function (options, cb) {
Kuzzle.prototype.disconnect = function () {
var collection;

this.logout();

this.state = 'disconnected';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Didn't you want to put a condition here based on an argument?

Copy link
Contributor Author

@AnthonySendra AnthonySendra Oct 3, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After a quick discussion with @scottinet and @jenow, we decided if the user wants to logout, he can directly call kuzzle.logout() explicitely.

this.network.close();
this.network = null;
Expand Down