Changeset 694

Show
Ignore:
Timestamp:
04/22/08 18:03:02 (9 months ago)
Author:
zooko@zooko.com
Message:

don't retire a missing-notification-timer until you finish accepting a slave
Previously, we retired the timer when we began accepting the slave. However, if we then detected duplicate connection and rejected one of the connections, then the resulting detach would start a new missing-notification-timer. With this patch, the missing-notification-timer that is started by detaching a connection is soon retired by the other connection leading to acceptance of the buildslave. So this probably fixes the other way that issue #211 was happening (after the previous patch that was intended to fix #211).

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • buildbot/buildslave.py

    r690 r694  
    108108        @return: a Deferred that fires with a suitable pb.IPerspective to 
    109109                 give to the slave (i.e. 'self')""" 
    110  
    111         if self.missing_timer: 
    112             self.missing_timer.cancel() 
    113             self.missing_timer = None 
    114110 
    115111        if self.slave: 
     
    181177            log.msg("bot attached") 
    182178            self.messageReceivedFromSlave() 
     179            if self.missing_timer: 
     180                self.missing_timer.cancel() 
     181                self.missing_timer = None 
     182 
    183183            return self.updateSlave() 
    184184        d.addCallback(_accept_slave)