Permalink
Browse files

Merge pull request #77 from akavlie/6d6114a787ef6827e852a86643e9afbf2…

…e1f8e09

Event emiter for bad connection
  • Loading branch information...
2 parents d36b8a9 + 6d6114a commit 9c129589fd2d90e5d3086e7d4a9df0422e21898a @martynsmith committed Dec 19, 2011
Showing with 3 additions and 0 deletions.
  1. +3 −0 lib/irc.js
View
@@ -558,6 +558,9 @@ Client.prototype.connect = function ( retryCount, callback ) { // {{{
self.connect( retryCount + 1 );
}, self.opt.retryDelay );
});
+ self.conn.addListener("error", function(exception) {
+ self.emit("netError", exception);
+ });
}; // }}}
Client.prototype.disconnect = function ( message, callback ) { // {{{
if ( typeof(message) === 'function' ) {

0 comments on commit 9c12958

Please sign in to comment.