diff --git a/exec/load/json-client.js b/exec/load/json-client.js index 95a291fd8cd3f957a25893433d363d81c0505e5f..1ea25fe0e09898d173b4c5ac31335ca2a9e329b0 100644 --- a/exec/load/json-client.js +++ b/exec/load/json-client.js @@ -349,14 +349,14 @@ function JSONClient(serverAddr,serverPort) { /* package a query and send through the socket */ this.send=function(packet) { if(!this.socket.is_connected) - throw("socket disconnected"); + throw("socket disconnected 1"); this.socket.sendJSON(packet); } /* receive a data packet */ this.receive=function() { if(!this.socket.is_connected) - throw("socket disconnected"); + return false; // Was throw("socket disconnected"); but this was filling up the error.log with every server recycle if(!this.socket.data_waiting) return false; var packet=this.socket.recvJSON();