Skip to content

Commit f6be275

Browse files
committed
Merge PR #478.
2 parents 080c4b8 + 1e6f0f8 commit f6be275

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Network/Socket/SockAddr.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ bind s a = case a of
6161
Left e2 | not (isDoesNotExistError e2) -> throwIO (e2 :: IOException)
6262
_ -> do
6363
-- socket not actually in use, remove it and retry bind
64-
removeFile p
64+
void (try $ removeFile p :: IO (Either IOError ()))
6565
G.bind s a
6666
_ -> G.bind s a
6767

0 commit comments

Comments
 (0)