@@ -273,9 +273,6 @@ apiClose (ourEndPoint, theirEndPoint) connId connAlive = void . tryIO $ do
273273 return False
274274
275275-- | Send data across a connection
276−--
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
279276apiSend :: RemoteEndPoint -> ConnectionId -> MVar Bool -> [ByteString] -> IO (Either (FailedWith SendErrorCode) ())
280277apiSend theirEndPoint connId connAlive payload =
281278 modifyMVar connAlive $ \alive -> do