summaryrefslogtreecommitdiff
path: root/src/Erebos/Network
diff options
context:
space:
mode:
Diffstat (limited to 'src/Erebos/Network')
-rw-r--r--src/Erebos/Network/Protocol.hs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Erebos/Network/Protocol.hs b/src/Erebos/Network/Protocol.hs
index 34f1163..c0dff4b 100644
--- a/src/Erebos/Network/Protocol.hs
+++ b/src/Erebos/Network/Protocol.hs
@@ -281,6 +281,8 @@ connClose conn@Connection {..} = do
writeTVar cChannel ChannelClosed
writeTVar gConnections . filter (/=conn) =<< readTVar gConnections
writeFlow cDataInternal Nothing
+ streams <- readTVar cInStreams
+ forM_ streams $ \( _, s ) -> writeFlow (sFlowIn s) (StreamClosed 0)
connAddWriteStream :: Connection addr -> STM (Either String (TransportHeaderItem, RawStreamWriter, IO ()))
connAddWriteStream conn@Connection {..} = do