Skip to content
This repository has been archived by the owner on Oct 2, 2019. It is now read-only.

Commit

Permalink
fix: Use #accept? instead of #accept to avoid IO::Error (closed strea…
Browse files Browse the repository at this point in the history
…m) exception
  • Loading branch information
hugoabonizio authored and marceloboeira committed May 10, 2017
1 parent e93ff55 commit 38b5c0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bojack/event_loop/connection.cr
Expand Up @@ -12,7 +12,7 @@ module BoJack

def start
loop do
if socket = @server.accept
if socket = @server.accept?
@logger.info("#{socket.remote_address} connected")

Message.new(socket, @channel).start
Expand Down

0 comments on commit 38b5c0e

Please sign in to comment.