From 0ff5fb8fc4f60a42b9bf9e2be7e364d084016c5a Mon Sep 17 00:00:00 2001 From: David Wilson Date: Mon, 22 Jul 2019 21:06:53 +0100 Subject: [PATCH] [stream-refactor] fix su_test failure (issue #363) --- mitogen/su.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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):