X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=lib%2FZOOM%2FIRSpy.pm;h=d330113440c812a5f1c9f829645a444a7d907b47;hb=c77667147ee2fce26a177dd4fcde8f92520b0e02;hp=f5df4b54bd72f8ac7abc8dbf3910f5995792f2e8;hpb=b6eea669753e5efab0faedf443c7dfdcdff5b2ff;p=irspy-moved-to-github.git diff --git a/lib/ZOOM/IRSpy.pm b/lib/ZOOM/IRSpy.pm index f5df4b5..d330113 100644 --- a/lib/ZOOM/IRSpy.pm +++ b/lib/ZOOM/IRSpy.pm @@ -288,7 +288,7 @@ sub _irspy_to_zeerex { } -sub _rewrite_record { +sub _rewrite_irspy_record { my $this = shift(); my($conn) = @_; @@ -300,12 +300,12 @@ sub _rewrite_record { # connection as idle. So re-establish it if necessary. $this->{conn}->connect($conn->option("host")); - _really_rewrite_record($this->{conn}, $rec); + _rewrite_zeerex_record($this->{conn}, $rec); $conn->log("irspy", "rewrote XML record"); } -sub _really_rewrite_record { +sub _rewrite_zeerex_record { my($conn, $rec, $oldid) = @_; my $p = $conn->package(); @@ -433,7 +433,7 @@ sub check { } if (!defined $nextaddr) { $conn->log("irspy", "has no more tests: removing"); - $this->_rewrite_record($conn); + $this->_rewrite_irspy_record($conn); $conn->option(rewrote_record => 1); my $newconn = $this->_next_connection(); if (!defined $newconn) {