core: add timeout.stop() if upload successful

Stop timeout not only in case of errors, but also in
positive case.

Signed-off-by: Jan Iversen <jan@casacondor.com>
This commit is contained in:
jan Iversen 2019-12-08 23:13:52 +01:00 committed by Dirk Hohndel
parent 1d74eb509f
commit 976b2fc2a7

View file

@ -286,6 +286,7 @@ void uploadDiveLogsDE::uploadFinished()
}
err = tr("Upload successful");
emit uploadFinish(true, err);
timeout.stop();
return;
}
err = tr("Login failed");