projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
protect finsh from recursion
[spider.git]
/
perl
/
AGWMsg.pm
diff --git
a/perl/AGWMsg.pm
b/perl/AGWMsg.pm
index 854050ae7761ed534784b9882c81bc82d3bec28a..faa280dc7f9d2cbd2b741d47394a07009b80de36 100644
(file)
--- a/
perl/AGWMsg.pm
+++ b/
perl/AGWMsg.pm
@@
-76,9
+76,13
@@
sub init
_sendf('m') if $monitor;
}
+my $finishing = 0;
+
sub finish
{
+ return if $finishing;
if ($sock) {
+ $finishing = 1;
dbg('err', "AGW ending...");
for (values %circuit) {
$_->disconnect;