jaspervdj / websockets

A Haskell library for creating WebSocket-capable servers
http://jaspervdj.be/websockets
BSD 3-Clause "New" or "Revised" License
407 stars 114 forks source link

Clean up forked threads #205

Closed chrismwendt closed 11 months ago

chrismwendt commented 4 years ago

Prior to this change, runServer would not kill the threads it forked. Namely, it would lose track of the appAsyncs.

After this change, runServer will kill all threads it forks.

This modifies code created in https://github.com/jaspervdj/websockets/pull/199 cc @jaspervdj

domenkozar commented 11 months ago

@jaspervdj this can be merged as it does indeed fail to close the thread if killer is not installed.