From 1cd7c4c063a9a19415d4715cdb4a73542cfc071b Mon Sep 17 00:00:00 2001 From: Caleb James DeLisle Date: Wed, 28 Jan 2015 17:58:43 +0100 Subject: [PATCH] Fix issue which causes ChainPadServ to abort --- ChainPadSrv.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ChainPadSrv.js b/ChainPadSrv.js index 1def6ee12..f5ae8edf0 100644 --- a/ChainPadSrv.js +++ b/ChainPadSrv.js @@ -186,7 +186,7 @@ var create = module.exports.create = function (socketServer, store) { handleMessage(ctx, socket, message); } catch (e) { console.log(e.stack); - socket.close(); + try { socket.close(); } catch (e) { } } }); socket.on('close', function (evt) {