summaryrefslogtreecommitdiffstats
path: root/lib/Plugins/FileTransfer.cpp
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2009-08-27 15:15:35 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2009-08-27 15:15:35 +0200
commitd4cdfdff42c777f5929017c1f26ecaed3d055cde (patch)
tree121d7a97dbef28ac27ede4b477da5a0b57c35c9b /lib/Plugins/FileTransfer.cpp
parent5aafe234442fa9cebe7202ef38ca213850eb5be8 (diff)
downloadabrt-d4cdfdff42c777f5929017c1f26ecaed3d055cde.tar.gz
abrt-d4cdfdff42c777f5929017c1f26ecaed3d055cde.tar.xz
abrt-d4cdfdff42c777f5929017c1f26ecaed3d055cde.zip
simplify error handling. CrashWatcher.cpp lost a few wrapper functions
-4k of code Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'lib/Plugins/FileTransfer.cpp')
-rw-r--r--lib/Plugins/FileTransfer.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Plugins/FileTransfer.cpp b/lib/Plugins/FileTransfer.cpp
index dbda17f..76dbb07 100644
--- a/lib/Plugins/FileTransfer.cpp
+++ b/lib/Plugins/FileTransfer.cpp
@@ -106,8 +106,7 @@ void CFileTransfer::SendFile(const std::string& pURL,
fclose(f);
}
/*retry the upload if not succesful, wait a bit before next try*/
- while( result!=0 && count-- != 0 && (sleep(m_nRetryDelay),1) );
-
+ while (result != 0 && --count >= 0 && (sleep(m_nRetryDelay), 1));
}
void CFileTransfer::CreateArchive(const std::string& pArchiveName,