Skip to content
Snippets Groups Projects
Commit 91d69346 authored by Michael Gray's avatar Michael Gray
Browse files

Z:Protocol->close() tracing and tidy-up.

parent eb3a60a7
No related branches found
No related tags found
No related merge requests found
......@@ -311,6 +311,9 @@ sub message_command_failed {
sub close {
my ($self) = @_;
$self->zircon_trace;
$self->callback(undef);
delete $self->{'connection'};
$self->{'is_open'} = 0;
return;
}
......@@ -365,6 +368,7 @@ sub zircon_trace_prefix {
sub DESTROY {
my ($self) = @_;
$self->zircon_trace('%s', $self);
$self->close if $self->is_open;
return;
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment