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:
Jake Farrell 2012-09-28 12:08:01 +00:00
parent c34d7d75fb
commit 373a26b0c6

View File

@ -68,7 +68,9 @@ sub close
{
my $self = shift;
if (defined $self->{transport}) {
$self->{transport}->close();
}
}
#