projects
/
irspy-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Do not attempt sanity-checks.
[irspy-moved-to-github.git]
/
lib
/
ZOOM
/
IRSpy.pm
diff --git
a/lib/ZOOM/IRSpy.pm
b/lib/ZOOM/IRSpy.pm
index
870f4dc
..
62df949
100644
(file)
--- a/
lib/ZOOM/IRSpy.pm
+++ b/
lib/ZOOM/IRSpy.pm
@@
-1,4
+1,4
@@
-# $Id: IRSpy.pm,v 1.74 2007-03-05 19:45:54 mike Exp $
+# $Id: IRSpy.pm,v 1.76 2007-03-10 13:02:36 mike Exp $
package ZOOM::IRSpy;
package ZOOM::IRSpy;
@@
-331,8
+331,10
@@
sub check {
$this->_rewrite_record($conn);
$conn->option(rewrote_record => 1);
if (@{ $this->{queue} } == 0) {
$this->_rewrite_record($conn);
$conn->option(rewrote_record => 1);
if (@{ $this->{queue} } == 0) {
+ # Do not destroy: we need this for later sanity checks
splice @conn, $i0, 1;
} else {
splice @conn, $i0, 1;
} else {
+ $conn->destroy();
$conn[$i0] = create
ZOOM::IRSpy::Connection($this,
shift @{ $this->{queue} }, async => 1);
$conn[$i0] = create
ZOOM::IRSpy::Connection($this,
shift @{ $this->{queue} }, async => 1);
@@
-467,6
+469,8
@@
sub check {
}
$this->log("irspy", "exiting main loop");
}
$this->log("irspy", "exiting main loop");
+ return $nskipped; # Sanity-checks don't work if conns are closed
+
# Sanity checks: none of the following should ever happen
my $finished = 1;
@conn = @{ $this->{connections} };
# Sanity checks: none of the following should ever happen
my $finished = 1;
@conn = @{ $this->{connections} };