Skip to content

Commit

Permalink
Merge PR haskell#569
Browse files Browse the repository at this point in the history
  • Loading branch information
kazu-yamamoto committed Aug 9, 2023
2 parents 7c2c834 + 4d35877 commit f893d03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Network/Socket/Syscall.hs
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ listen s backlog = withFdSocket s $ \fd -> do
accept :: SocketAddress sa => Socket -> IO (Socket, sa)
accept listing_sock = withNewSocketAddress $ \new_sa sz ->
withFdSocket listing_sock $ \listing_fd -> do
new_sock <- callAccept listing_fd new_sa sz >>= mkSocket
new_sock <- E.bracketOnError (callAccept listing_fd new_sa sz) c_close mkSocket
new_addr <- peekSocketAddress new_sa
return (new_sock, new_addr)
where
Expand Down

0 comments on commit f893d03

Please sign in to comment.