mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-06-28 05:15:54 +00:00
Abandon all hope of useful commit messages, ye who enter here.
This commit is contained in:
parent
a7e7f7498d
commit
2bc2b7003b
26 changed files with 3271 additions and 430 deletions
|
@ -174,7 +174,13 @@ FFZ.prototype.ws_send = function(func, data, callback, can_wait) {
|
|||
if ( callback )
|
||||
this._ws_callbacks[request] = callback;
|
||||
|
||||
this._ws_sock.send(request + " " + func + data);
|
||||
try {
|
||||
this._ws_sock.send(request + " " + func + data);
|
||||
} catch(err) {
|
||||
this.log("Socket Send Error: " + err);
|
||||
return false;
|
||||
}
|
||||
|
||||
return request;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue