1
mirror of https://github.com/rapid7/metasploit-framework synced 2024-11-12 11:52:01 +01:00

spaces -> tabs

git-svn-id: file:///home/svn/framework3/trunk@8232 4d416f70-5f16-0410-b530-b9f4589650da
This commit is contained in:
James Lee 2010-01-26 00:01:55 +00:00
parent 0155deda99
commit cdaeb27933

View File

@ -54,24 +54,24 @@ class PacketResponseWaiter
#
# Waits for a given time interval for the response packet to arrive.
# If the interval is -1 we can wait forever.
# If the interval is -1 we can wait forever.
#
def wait(interval)
if( interval and interval == -1 )
while(not self.done)
select(nil, nil, nil, 0.1)
end
else
begin
Timeout.timeout(interval) {
while(not self.done)
select(nil, nil, nil, 0.1)
end
}
rescue Timeout::Error
self.response = nil
end
end
if( interval and interval == -1 )
while(not self.done)
select(nil, nil, nil, 0.1)
end
else
begin
Timeout.timeout(interval) {
while(not self.done)
select(nil, nil, nil, 0.1)
end
}
rescue Timeout::Error
self.response = nil
end
end
return self.response
end