Land #7040, Decrease chance of an error when exiting a interactive shell

bug/bundler_fix
Brent Cook 2016-07-05 01:15:39 -05:00
commit 58e37931c5
No known key found for this signature in database
GPG Key ID: 1FFAA0B24B708F96
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)