Fixes for real this time...

This commit is contained in:
Robin Lambertz 2013-01-27 11:47:35 +00:00 committed by Robin Lambertz
parent e8e78e2942
commit b5516a81b3

View file

@ -24,6 +24,11 @@ Server.prototype.listen = function(port, host) {
self.socketServer = net.createServer();
self.socketServer.on('connection', function(socket) {
var client = new Client(true);
client._end = client.end;
client.end = function end(endReason) {
client.write(0xff, {reason: endReason});
client._end(endReason);
}
client.id = nextId++;
self.clients[client.id] = client;
client.on('error', function(err) {