@@ -324,10 +324,11 @@ handleIncomingMessages node = go initConnectionState
324 case st ^. incomingAt cid of
324 case st ^. incomingAt cid of
325 Just (_, ToProc weakQueue) -> do
325 Just (_, ToProc weakQueue) -> do
326 mQueue <- deRefWeak weakQueue
326 mQueue <- deRefWeak weakQueue
327− forM_ mQueue $ \queue ->
327+ forM_ mQueue $ \queue -> do
328 -- TODO: if we find that the queue is Nothing, should we remove
328 -- TODO: if we find that the queue is Nothing, should we remove
329 -- it from the NC state? (and same for channels, below)
329 -- it from the NC state? (and same for channels, below)
330− enqueue queue $ payloadToMessage payload
330+ let msg = payloadToMessage payload
332 Just (_, ToChan (TypedChannel chan')) -> do
333 Just (_, ToChan (TypedChannel chan')) -> do
333 mChan <- deRefWeak chan'
334 mChan <- deRefWeak chan'