Made protocols a bit more error resistant

This commit is contained in:
Michael Morrison 2014-02-02 14:28:31 -06:00
parent d6d7fee80f
commit a6338df070
4 changed files with 19 additions and 10 deletions

View file

@ -22,6 +22,9 @@ udpSocket.on('message', function(buffer, rinfo) {
break;
}
});
udpSocket.on('error', function(e) {
if(Gamedig.debug) console.log("UDP ERROR: "+e);
});
Gamedig = {