mirror of https://github.com/voidlizard/hbs2
maybe no-respawn on STM exception fixed
This commit is contained in:
parent
e107c318c3
commit
fc52fabbf9
|
@ -571,10 +571,10 @@ runPeer :: forall e s . ( e ~ L4Proto
|
||||||
, HasStorage (PeerM e IO)
|
, HasStorage (PeerM e IO)
|
||||||
)=> PeerOpts -> IO ()
|
)=> PeerOpts -> IO ()
|
||||||
|
|
||||||
runPeer opts = U.handle (\e -> myException e
|
runPeer opts = Exception.handle (\e -> myException e
|
||||||
>> performGC
|
>> performGC
|
||||||
>> respawn opts
|
>> respawn opts
|
||||||
) $ runResourceT do
|
) $ runResourceT do
|
||||||
|
|
||||||
myself <- liftIO myThreadId
|
myself <- liftIO myThreadId
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue