mirror of https://github.com/voidlizard/hbs2
use native Exception.handle to respawn
This commit is contained in:
parent
b7079c2915
commit
3a04d7f0ab
|
@ -449,7 +449,7 @@ runPeer :: forall e s . ( e ~ L4Proto
|
|||
, HasStorage (PeerM e IO)
|
||||
) => PeerOpts -> IO ()
|
||||
|
||||
runPeer opts = U.handle (\e -> myException e
|
||||
runPeer opts = Exception.handle (\e -> myException e
|
||||
>> performGC
|
||||
>> respawn opts
|
||||
) $ runResourceT do
|
||||
|
|
Loading…
Reference in New Issue