diff options
author | Tails developers <amnesia@boum.org> | 2012-09-16 22:07:41 +0200 |
---|---|---|
committer | Tails developers <amnesia@boum.org> | 2012-09-17 12:25:08 +0200 |
commit | 1ec71b0916fbbbe51682b47d2ec3a70dfdb95a13 (patch) | |
tree | b29a43e64d168f70e33b9c9c22c6a5b626438549 | |
parent | ab344ac94677dc6297e54e579bb00b1fd427d83b (diff) |
Reinitialise error output when calling send a 2nd time
Error output coming form the mail sending thread was not reinitialised
before a new send attemps. Thus, the previous error was reported. We
now reinitialize the error before each send attempt.
-rw-r--r-- | whisperBack/whisperback.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/whisperBack/whisperback.py b/whisperBack/whisperback.py index 6d6f2d6..108410c 100644 --- a/whisperBack/whisperback.py +++ b/whisperBack/whisperback.py @@ -212,7 +212,8 @@ class WhisperBack(object): finished_callback(self.__error_output) return False - assert self.__thread is None or not self.__thread.isAlive () + self.__error_output = None + assert self.__thread is None or not self.__thread.isAlive() self.__thread = threading.Thread(target=save_exception, args=(func, args)) self.__thread.start() # XXX: there could be no main loop |