Kill tasks when their websocket closes. Sigh.

git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3779 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
2022-01-21 00:49:03 +00:00
parent 1734c88627
commit df0bb102dc
3 changed files with 19 additions and 3 deletions

View File

@ -301,10 +301,14 @@ function handleWebSocketRequest(request, response, client) {
break;
}
}
} else {
response.onClose();
client.close();
}
});
client.onError(function(error) {
logError(client.peerName + " - - [" + new Date() + "] " + error);
response.onError(error);
});
let headers = {