Skip to content
Snippets Groups Projects
Commit 15ff7919 authored by mcmlxxix's avatar mcmlxxix
Browse files

return null on failed parse (error still logged)

parent dbd35f5b
Branches
Tags
No related merge requests found
load("synchronet-json.js");
//load("synchronet-json.js");
/* socket mod version */
Socket.prototype.VERSION = "$Revision$".replace(/\$/g,'').split(' ')[1];
/* round trip packet time */
......@@ -6,7 +6,7 @@ Socket.prototype.latency = 0;
/* one way (latency / 2) */
Socket.prototype.time_offset = 0;
/* largest receivable packet */
Socket.prototype.max_recv = 102400;
Socket.prototype.max_recv = 131072;
/* timeout for socket.recvline() */
Socket.prototype.recv_wait = 1;
/* last ping sent */
......@@ -33,6 +33,7 @@ Socket.prototype.recvJSON = function() {
}
catch(e) {
log(LOG_ERROR,e);
packet = null;
}
}
return packet;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment