mirror of
https://github.com/rapid7/metasploit-framework
synced 2024-11-12 11:52:01 +01:00
fix termination of bind handler thread
git-svn-id: file:///home/svn/incoming/trunk@3349 4d416f70-5f16-0410-b530-b9f4589650da
This commit is contained in:
parent
3783e27fc7
commit
79e055c7fd
@ -65,7 +65,7 @@ module BindTcp
|
||||
# Starts monitoring for an outbound connection to become established.
|
||||
#
|
||||
def start_handler
|
||||
listener_thread = Thread.new {
|
||||
self.listener_thread = Thread.new {
|
||||
client = nil
|
||||
|
||||
print_status("Started bind handler")
|
||||
@ -124,11 +124,17 @@ module BindTcp
|
||||
# Nothing to speak of.
|
||||
#
|
||||
def stop_handler
|
||||
# Stop the listener thread.
|
||||
if (listener_thread)
|
||||
listener_thread.kill
|
||||
self.listener_thread = nil
|
||||
end
|
||||
end
|
||||
|
||||
protected
|
||||
|
||||
attr_accessor :conn_threads # :nodoc:
|
||||
attr_accessor :listener_thread # :nodoc:
|
||||
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user