Added cold-persistance to Channel Chat Buffer via periodic DB saves based on chat activity.
This commit is contained in:
parent
366df357b8
commit
c64b315fdf
7 changed files with 124 additions and 5 deletions
|
|
@ -84,6 +84,9 @@ module.exports.socketCriticalExceptionHandler = function(socket, err){
|
|||
//yell at the browser for fucking up, and tell it what it did wrong.
|
||||
socket.emit("kick", {type: "Disconnected", reason: `Server Error: ${err.message}`});
|
||||
}else{
|
||||
//Locally handle the exception
|
||||
module.exports.localExceptionHandler(err);
|
||||
|
||||
//yell at the browser for fucking up
|
||||
socket.emit("kick", {type: "Disconnected", reason: "An unexpected server crash was just prevented. You should probably report this to an admin."});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue