Permalink
Browse files

Fix: _reconnectTimer treated as a browser timer object, not Timer class

  • Loading branch information...
1 parent 9b2b2f3 commit e0dd4b69ccccad471d59eb075e27c86a474ed95f @andreyvit andreyvit committed Mar 29, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/connector.coffee
View
@@ -42,7 +42,7 @@ exports.Connector = class Connector
return if @_isSocketConnected()
# prepare for a new connection
- clearTimeout @_reconnectTimer if @_reconnectTimer
+ @_reconnectTimer.stop()
@_disconnectionReason = 'cannot-connect'
@protocolParser.reset()

0 comments on commit e0dd4b6

Please sign in to comment.