Skip to content

Commit

Permalink
Making sure it doesn't die on an exception.
Browse files Browse the repository at this point in the history
  • Loading branch information
martymc committed May 7, 2012
1 parent f094d57 commit f295214
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions server.js
Expand Up @@ -59,3 +59,8 @@ client.addListener('message', function (from, to, message) {

});

//don't die on exceptions..
process.on('uncaughtException', function(err) {
console.log(err);
});

0 comments on commit f295214

Please sign in to comment.