Permalink
Browse files

Fix logic

  • Loading branch information...
1 parent 5e2a0cd commit 63e1b6304b9483974e01e479283222071b8e21a3 @sandro committed Feb 22, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/specjour/connection.rb
@@ -26,7 +26,7 @@ def connect
end
def disconnect
- socket.close unless socket && socket.closed?
+ socket.close if socket && !socket.closed?
end
def socket

0 comments on commit 63e1b63

Please sign in to comment.