Skip to content

Commit

Permalink
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/socket.cr
Original file line number Diff line number Diff line change
@@ -216,7 +216,7 @@ class Socket < IO::FileDescriptor

protected def accept_impl
loop do
client_fd = LibC.accept(fd, out client_addr, out client_addrlen)
client_fd = LibC.accept(fd, nil, nil)
if client_fd == -1
if closed?
return

0 comments on commit e85746f

Please sign in to comment.