113
114
# If we haven't gotten any signal 4 runs in a row (12 seconds),
115
116
self.connection_lost_counter += 1
117
118
if self.connection_lost_counter >= 4:
118
120
self.connection_lost_counter = 0
120
122
else: # If we have a signal, reset the counter