phergie / phergie-irc-client-react

IRC client library built on React
BSD 3-Clause "New" or "Revised" License
56 stars 26 forks source link

Terminate the event loop when no connections are active #45

Open elazar opened 9 years ago

elazar commented 9 years ago

It appears the client does not have an exit condition for terminating the event loop when all connections have been terminated. It should possible to accomplish this by calling stop() on the event loop instance as part of the end event callback if a check for active connections yields none.