Skip to content

Commit

Permalink
Address a deprecation warning from the network package.
Browse files Browse the repository at this point in the history
  • Loading branch information
acowley committed Nov 18, 2016
1 parent ad1d41f commit 932edd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Ros/Node/RosTcp.hs
Expand Up @@ -217,7 +217,7 @@ callServiceWithMaster rosMaster serviceName message = runExceptT $ do
(host, port) <- ExceptT . return $ parseHostAndPort serviceUrl
-- make a socket
let makeSocket = socket AF_INET Sock.Stream defaultProtocol
closeSocket sock = liftIO $ sClose sock
closeSocket sock = liftIO $ close sock
withSocket sock = do
ioErrorToExceptT ConnectExcept "Problem connecting to server. Got exception : " $ do
--Connect to the socket
Expand Down

0 comments on commit 932edd6

Please sign in to comment.