Skip to content

Commit

Permalink
listen for 'disconnected' not 'disconnecting' to match changes in com…
Browse files Browse the repository at this point in the history
…mit 692865c
  • Loading branch information
rburns committed Sep 19, 2012
1 parent 7dde81a commit e8351ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/index.coffee
Expand Up @@ -39,7 +39,7 @@ exports.open = do ->
c = new Connection origin c = new Connection origin


del = -> delete connections[origin] del = -> delete connections[origin]
c.on 'disconnecting', del c.on 'disconnected', del
c.on 'connect failed', del c.on 'connect failed', del
connections[origin] = c connections[origin] = c


Expand Down

0 comments on commit e8351ed

Please sign in to comment.