and test on the correct thing!
[spider.git] / perl / cluster.pl
index 655a986b1af35dfd881795a3a3ffb320a867dc82..0e321f2326efadff00b9ba70a19ee939037ffe85 100755 (executable)
@@ -240,6 +240,13 @@ sub rec
        }
 }
 
+# remove any outstanding entries on the inqueue after a disconnection (usually)
+sub clean_inqueue
+{
+       my $dxchan = shift;
+       @inqueue = grep {$_->{dxchan} != $dxchan} @inqueue;
+}
+
 sub login
 {
        return \&new_channel;