projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
try to prevent the lack of a peer address causing the cluster to crash
[spider.git]
/
perl
/
IntMsg.pm
diff --git
a/perl/IntMsg.pm
b/perl/IntMsg.pm
index 6e588b3ef7ddbb86c0165e229d37181c08179253..e3360fdbf566cf6990dda643c41a78953a3a65bd 100644
(file)
--- a/
perl/IntMsg.pm
+++ b/
perl/IntMsg.pm
@@
-27,7
+27,7
@@
sub dequeue
{
my $conn = shift;
{
my $conn = shift;
- if ($conn->{msg} =~ /\n/) {
+ if ($conn
&& $conn
->{msg} =~ /\n/) {
my @lines = split /\r?\n/, $conn->{msg};
if ($conn->{msg} =~ /\n$/) {
delete $conn->{msg};
my @lines = split /\r?\n/, $conn->{msg};
if ($conn->{msg} =~ /\n$/) {
delete $conn->{msg};
@@
-41,7
+41,7
@@
sub dequeue
} else {
$_ = '';
}
} else {
$_ = '';
}
- &{$conn->{rproc}}($conn, $_);
+ &{$conn->{rproc}}($conn, $_)
if exists $conn->{rproc}
;
}
}
}
}
}
}