Fix listener thread listening after the server process was stopped
authorLuke Lau <luke_lau@icloud.com>
Thu, 14 May 2020 20:18:13 +0000 (21:18 +0100)
committerLuke Lau <luke_lau@icloud.com>
Thu, 14 May 2020 20:18:13 +0000 (21:18 +0100)
commit133940df94b1e8745598699a492e5c9534644d75
treecefed058b8ba9d5ac6b0a5313faa45f78c9333d2
parent280249dd3d7025f2e15ef6a9a6b5bfd22ce37447
Fix listener thread listening after the server process was stopped

Therefore fixes hGetLine: illegal operation (handle is closed)
exceptions, because the handles were being closed whilst the listener
thread was still reading from them.

Fixes #66
src/Language/Haskell/LSP/Test/Session.hs