Fix an error when exiting a interactive shell

bug/bundler_fix
ssyy201506 2016-06-30 16:19:10 +09:00
parent 058115c21f
commit 0a85f1d233
1 changed files with 1 additions and 1 deletions

View File

@ -185,7 +185,7 @@ protected
# writing it to the other. Both are expected to implement Rex::IO::Stream.
#
def interact_stream(stream)
while self.interacting
while self.interacting && _remote_fd(stream)
# Select input and rstream
sd = Rex::ThreadSafe.select([ _local_fd, _remote_fd(stream) ], nil, nil, 0.25)