diff --git a/mitogen/su.py b/mitogen/su.py index 59574f3f..5e9a237a 100644 --- a/mitogen/su.py +++ b/mitogen/su.py @@ -102,10 +102,9 @@ class SetupBootstrapProtocol(mitogen.parent.BootstrapProtocol): self.password_sent = True def _on_password_incorrect(self, line, match): - if self.password_sent: - self.stream.conn._fail_connection( - PasswordError(password_incorrect_msg) - ) + self.stream.conn._fail_connection( + PasswordError(password_incorrect_msg) + ) class Options(mitogen.parent.Options):