Skip to content

Commit

Permalink
connection: Test for socket close, not channel
Browse files Browse the repository at this point in the history
  • Loading branch information
woodruffw committed Jan 6, 2018
1 parent 5c06f07 commit a80fd2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/i3/connection.cr
Expand Up @@ -173,7 +173,7 @@ module I3
# Pumps request `Message`s sent over the channel to the i3 IPC socket.
private def pump_requests!
spawn do
until requests.closed?
until socket.closed?
msg = requests.receive
socket.write_bytes(msg)
end
Expand Down

0 comments on commit a80fd2f

Please sign in to comment.