diff options
author | Roman Smrž <roman.smrz@seznam.cz> | 2025-07-17 21:39:22 +0200 |
---|---|---|
committer | Roman Smrž <roman.smrz@seznam.cz> | 2025-07-17 21:39:22 +0200 |
commit | d438e42a8047c3ea37ec2f0eaa8010fb22fc21d6 (patch) | |
tree | 7b400e787139d12fd4f70250825278536b84aa9a /src | |
parent | f87fdcc65008fb40e8f0f37f33f6bbae1afa162a (diff) |
Destroy ICE and close WS sessions on connection termination
Diffstat (limited to 'src')
-rw-r--r-- | src/Erebos/ICE.chs | 1 | ||||
-rw-r--r-- | src/Erebos/Network.hs | 1 |
2 files changed, 1 insertions, 1 deletions
diff --git a/src/Erebos/ICE.chs b/src/Erebos/ICE.chs index bed186b..a3dd9bc 100644 --- a/src/Erebos/ICE.chs +++ b/src/Erebos/ICE.chs @@ -66,6 +66,7 @@ instance Show IceSession where instance PeerAddressType IceSession where sendBytesToAddress = iceSend + connectionToAddressClosed = iceDestroy data IceRemoteInfo = IceRemoteInfo diff --git a/src/Erebos/Network.hs b/src/Erebos/Network.hs index 6126e60..e990fae 100644 --- a/src/Erebos/Network.hs +++ b/src/Erebos/Network.hs @@ -164,7 +164,6 @@ instance Eq Peer where class (Eq addr, Ord addr, Show addr, Typeable addr) => PeerAddressType addr where sendBytesToAddress :: addr -> ByteString -> IO () connectionToAddressClosed :: addr -> IO () - connectionToAddressClosed _ = return () data PeerAddress = forall addr. PeerAddressType addr => CustomPeerAddress addr |