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)
|
||||
)=> PeerOpts -> IO ()
|
||||
|
||||
runPeer opts = U.handle (\e -> myException e
|
||||
>> performGC
|
||||
>> respawn opts
|
||||
) $ runResourceT do
|
||||
runPeer opts = Exception.handle (\e -> myException e
|
||||
>> performGC
|
||||
>> respawn opts
|
||||
) $ runResourceT do
|
||||
|
||||
myself <- liftIO myThreadId
|
||||
|
||||
|
|
Loading…
Reference in New Issue