Permalink
Browse files

fixing a bug in connection.rb unless to if :)

  • Loading branch information...
1 parent 9db684a commit 2b583b849e58993960ef0a1af36affe524b1868e Michael committed Jul 16, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/thin/connection.rb
View
@@ -66,7 +66,7 @@ def close_connection(after_writing=false)
@reactor.detach(:read, @socket)
end
if after_writing
- @reactor.detach(:read, @socket) unless @reactor.attached?(:read, @socket)
+ @reactor.detach(:read, @socket) if @reactor.attached?(:read, @socket)
@socket.close unless @socket.closed?
end
end

0 comments on commit 2b583b8

Please sign in to comment.