Skip to content

Commit

Permalink
Merge pull request #77 from akavlie/6d6114a787ef6827e852a86643e9afbf2…
Browse files Browse the repository at this point in the history
…e1f8e09

Event emiter for bad connection
  • Loading branch information
martynsmith committed Dec 19, 2011
2 parents d36b8a9 + 6d6114a commit 9c12958
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/irc.js
Original file line number Diff line number Diff line change
Expand Up @@ -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' ) {
Expand Down

0 comments on commit 9c12958

Please sign in to comment.