@@ -273,9 +273,6 @@ apiClose (ourEndPoint, theirEndPoint) connId connAlive = void . tryIO $ do
273 return False
273 return False
275-- | Send data across a connection
275-- | Send data across a connection
277−-- TODO: we should have some per-connection state so that the user cannot send
278−-- to the connection after they closed it, or close it more than once
279apiSend :: RemoteEndPoint -> ConnectionId -> MVar Bool -> [ByteString] -> IO (Either (FailedWith SendErrorCode) ())
276apiSend :: RemoteEndPoint -> ConnectionId -> MVar Bool -> [ByteString] -> IO (Either (FailedWith SendErrorCode) ())
280apiSend theirEndPoint connId connAlive payload =
277apiSend theirEndPoint connId connAlive payload =
281 modifyMVar connAlive $ \alive -> do
278 modifyMVar connAlive $ \alive -> do