Skip to content
Permalink
Browse files
Fix LibC.accept segfault
  • Loading branch information
RX14 authored and matiasgarciaisaia committed Aug 4, 2017
1 parent 890ab45 commit e85746f1dbf7ba426e8356ed63f09b8f38c25c21
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/socket.cr
@@ -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.