Skip to content

Commit cfeb0b7

Browse files
committed
prefer threadsafe sleep here
1 parent 897b5b5 commit cfeb0b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/exploits/multi/handler.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def exploit
5757
loop do
5858
break if session_created? && datastore['ExitOnSession']
5959
break if timeout > 0 && (stime + timeout < Time.now.to_f)
60-
sleep(1)
60+
Rex::ThreadSafe.sleep(1)
6161
end
6262
end
6363
end

0 commit comments

Comments
 (0)