From 1744eaecf9921bb15e40c478b47e5dd4c36669e8 Mon Sep 17 00:00:00 2001 From: Jeff Hill Date: Wed, 7 Mar 2001 16:28:23 +0000 Subject: [PATCH] moved loc of attempts counter incr --- src/ca/repeaterSubscribeTimer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ca/repeaterSubscribeTimer.cpp b/src/ca/repeaterSubscribeTimer.cpp index 45b4689f9..16ac7e40a 100644 --- a/src/ca/repeaterSubscribeTimer.cpp +++ b/src/ca/repeaterSubscribeTimer.cpp @@ -22,7 +22,6 @@ repeaterSubscribeTimer::repeaterSubscribeTimer ( udpiiu &iiuIn, osiTimerQueue &q void repeaterSubscribeTimer::expire () { static const unsigned nTriesToMsg = 50; - this->attempts++; if ( this->attempts > nTriesToMsg && ! this->once ) { ca_printf ( "Unable to contact CA repeater after %u tries\n", nTriesToMsg); @@ -32,6 +31,7 @@ void repeaterSubscribeTimer::expire () } this->iiu.repeaterRegistrationMessage ( this->attempts ); + this->attempts++; } void repeaterSubscribeTimer::destroy ()