Navigation Menu

Skip to content

Commit

Permalink
Attempt to kill Jabber::Connection's @keepaliveThread only if it is a…
Browse files Browse the repository at this point in the history
… thread alive

git-svn-id: svn+ssh://svn.gna.org/svn/xmpp4r/trunk/xmpp4r@331 fc81a325-65fc-0310-ab21-b05fd605316e
  • Loading branch information
astro committed Apr 12, 2007
1 parent f99a202 commit d9fd178
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/xmpp4r/connection.rb
Expand Up @@ -71,7 +71,7 @@ def connect(host, port)
# Closing connection:
# first kill keepaliveThread, then call Stream#close!
def close!
@keepaliveThread.kill
@keepaliveThread.kill if @keepaliveThread and @keepaliveThread.alive?
super
end

Expand Down

0 comments on commit d9fd178

Please sign in to comment.