Browse files

avoid double close() with @mysql.close

  • Loading branch information...
1 parent 9df3bc1 commit 2725f298d6fa52b5fb75d97025040324e544e792 @tmm1 committed Sep 6, 2008
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/em/mysql.rb
View
4 lib/em/mysql.rb
@@ -128,8 +128,10 @@ def execute sql, response = nil, &blk
def close
@connected = false
+ # @mysql.close
+ # IO.pipe
+ # EM.add_timer(0){ close_connection }
close_connection
- @mysql.close
end
private

0 comments on commit 2725f29

Please sign in to comment.