71 state = prober.feed(byte_str) |
71 state = prober.feed(byte_str) |
72 if not state: |
72 if not state: |
73 continue |
73 continue |
74 if state == ProbingState.FOUND_IT: |
74 if state == ProbingState.FOUND_IT: |
75 self._best_guess_prober = prober |
75 self._best_guess_prober = prober |
|
76 self._state = ProbingState.FOUND_IT |
76 return self.state |
77 return self.state |
77 elif state == ProbingState.NOT_ME: |
78 elif state == ProbingState.NOT_ME: |
78 prober.active = False |
79 prober.active = False |
79 self._active_num -= 1 |
80 self._active_num -= 1 |
80 if self._active_num <= 0: |
81 if self._active_num <= 0: |