diff options
Diffstat (limited to 'dht/src/Network/StreamServer.hs')
-rw-r--r-- | dht/src/Network/StreamServer.hs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/dht/src/Network/StreamServer.hs b/dht/src/Network/StreamServer.hs index 1055eaad..37f8812a 100644 --- a/dht/src/Network/StreamServer.hs +++ b/dht/src/Network/StreamServer.hs | |||
@@ -128,7 +128,8 @@ streamServer cfg addrs = do | |||
128 | in foldr tryBind again addrs Nothing | 128 | in foldr tryBind again addrs Nothing |
129 | listen sock maxListenQueue | 129 | listen sock maxListenQueue |
130 | thread <- mkWeakThreadId <=< forkIO $ do | 130 | thread <- mkWeakThreadId <=< forkIO $ do |
131 | myThreadId >>= flip labelThread "StreamServer.acceptLoop" | 131 | bindaddr <- Socket.getSocketName sock |
132 | myThreadId >>= flip labelThread ("StreamServer.acceptLoop." <> bshow bindaddr) | ||
132 | acceptLoop cfg sock 0 | 133 | acceptLoop cfg sock 0 |
133 | return (ServerHandle sock thread) | 134 | return (ServerHandle sock thread) |
134 | 135 | ||