Commit e5526b1

mo khan <mo@mokhan.ca>
2013-07-21 02:15:16
disconnect connection when disposed
1 parent f442d41
Changed files (1)
lib
lib/humble/session.rb
@@ -24,6 +24,8 @@ module Humble
     end
 
     def dispose
+      @connection.disconnect if @connection
+      @connection = nil
     end
 
     private