summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTails developers <amnesia@boum.org>2012-09-16 22:07:41 +0200
committerTails developers <amnesia@boum.org>2012-09-17 12:25:08 +0200
commit1ec71b0916fbbbe51682b47d2ec3a70dfdb95a13 (patch)
treeb29a43e64d168f70e33b9c9c22c6a5b626438549
parentab344ac94677dc6297e54e579bb00b1fd427d83b (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.py3
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