mirror of https://github.com/voidlizard/hbs2
wip
This commit is contained in:
parent
c093c9237b
commit
9d0f1f7976
|
@ -42,7 +42,8 @@ newMessagingUDPMulticast s = runMaybeT $ do
|
||||||
|
|
||||||
(host, port) <- MaybeT $ pure $ getHostPort (Text.pack s)
|
(host, port) <- MaybeT $ pure $ getHostPort (Text.pack s)
|
||||||
|
|
||||||
so <- liftIO $ multicastReceiver host port
|
so <- liftIO (try @_ @SomeException $ multicastReceiver host port)
|
||||||
|
>>= toMPlus
|
||||||
|
|
||||||
liftIO $ setSocketOption so ReuseAddr 1
|
liftIO $ setSocketOption so ReuseAddr 1
|
||||||
|
|
||||||
|
|
|
@ -844,7 +844,7 @@ runPeer opts = respawnOnError opts $ do
|
||||||
|
|
||||||
|
|
||||||
mcast <- newMessagingUDPMulticast defLocalMulticast
|
mcast <- newMessagingUDPMulticast defLocalMulticast
|
||||||
`orDie` "Can't start RPC listener"
|
`orDie` "Can't start multicast listener"
|
||||||
|
|
||||||
messMcast <- async $ runMessagingUDP mcast
|
messMcast <- async $ runMessagingUDP mcast
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue