Merge branch 'mem-leak'
This commit is contained in:
@@ -91,7 +91,7 @@ subscribe bus conn ents =
|
||||
-- even when no state changes arrive.
|
||||
receiveLoop :: Bus -> WS.Connection -> IO Void
|
||||
receiveLoop bus conn = forever $ do
|
||||
winner <- race (threadDelay 1000000) (WS.receiveData conn)
|
||||
winner <- race (threadDelay 1_000_000) (WS.receiveData conn)
|
||||
case winner of
|
||||
Left () -> atomically $ writeTChan (busInbound bus) Tick
|
||||
Right msg -> case eitherDecode msg of
|
||||
|
||||
Reference in New Issue
Block a user