Subject: | close() not working due to deep recursion fix |
The fix to prevent deep recursion in close() prevents it being called
properly at all due to close() being called by Net::Telnet open() and
fhopen().
The fix is to set close_called to 0 after calling open() and fhopen().
Subject: | Session.pm |
Message body is not shown because it is too large.
Subject: | Session.pm.diff |
197,199d196
< ## Reset close_called
< $self->close_called(0);
<
203,215d199
<
< ## Override Net::Telnet::open to reset close_called.
< sub open {
< my ($self, @args) = @_;
< my $ok = $self->SUPER::open(@args);
<
< ## Reset close_called
< $self->close_called(0);
<
< return $ok;
< }
<
<