projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
get enhanced mode "work" in basic console.pl
[spider.git]
/
perl
/
Msg.pm
diff --git
a/perl/Msg.pm
b/perl/Msg.pm
index d0ad733048a3c0699d14695ae2263fb48ac80074..13833962d3d316d26f997e8861a431d143bda478 100644
(file)
--- a/
perl/Msg.pm
+++ b/
perl/Msg.pm
@@
-320,7
+320,7
@@
sub _close_it
if ($sock) {
dbg((ref $conn) . " Connection $conn->{cnum} $call closing gracefully") if isdbg('connll');
if ($sock) {
dbg((ref $conn) . " Connection $conn->{cnum} $call closing gracefully") if isdbg('connll');
- $sock->close_gracefully;
+ $sock->close_gracefully
if $sock->can('close_gracefully')
;
}
# get rid of any references
}
# get rid of any references
@@
-570,7
+570,8
@@
sub DESTROY
my $sock = $conn->{sock};
if ($sock) {
my $sock = $conn->{sock};
if ($sock) {
- $sock->close_gracefully;
+ $sock->close_gracefully if $sock->can('close_gracefully');
+ delete $conn->{sock};
}
$noconns--;
}
$noconns--;