mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-13 13:03:20 +00:00
Throws exception instead of returning null
This commit is contained in:
@@ -22,7 +22,7 @@ define([
|
||||
},
|
||||
close: function() {
|
||||
if (false === this.isConnected()) {
|
||||
return;
|
||||
throw "Not connected to websocket";
|
||||
}
|
||||
activeSession.close();
|
||||
activeSession = null;
|
||||
|
Reference in New Issue
Block a user