forked from cory/tildefriends
Another leak.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3913 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
@ -237,7 +237,12 @@ function handleWebSocketRequest(request, response, client) {
|
||||
var array = new Uint8Array(packet.length + message.length);
|
||||
array.set(packet, 0);
|
||||
array.set(message, packet.length);
|
||||
return client.write(array);
|
||||
try {
|
||||
return client.write(array);
|
||||
} catch (error) {
|
||||
client.close();
|
||||
throw error;
|
||||
}
|
||||
}
|
||||
response.onMessage = null;
|
||||
|
||||
|
Reference in New Issue
Block a user