mirror of
https://github.com/valitydev/thrift.git
synced 2024-11-07 02:45:22 +00:00
THRIFT-1082: Thrift::FramedTransport sometimes calls close() on an undefined value
Client: perl Patch: John Siracusa Fixes Thrift::FramedTransport module sometimes ends up calling the close() method on an undefined value inside its own close() git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1391418 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
c34d7d75fb
commit
373a26b0c6
@ -68,7 +68,9 @@ sub close
|
||||
{
|
||||
my $self = shift;
|
||||
|
||||
$self->{transport}->close();
|
||||
if (defined $self->{transport}) {
|
||||
$self->{transport}->close();
|
||||
}
|
||||
}
|
||||
|
||||
#
|
||||
|
Loading…
Reference in New Issue
Block a user