diff options
author | Hoa V. DINH <dinh.viet.hoa@gmail.com> | 2015-10-04 14:37:11 -0700 |
---|---|---|
committer | Hoa V. DINH <dinh.viet.hoa@gmail.com> | 2015-10-04 14:37:11 -0700 |
commit | 18f6bfe87f33008021be6647061436ebec19669c (patch) | |
tree | 8a43848449184b2f0a926a6bc5383a8339e7ca5a /src/async/pop | |
parent | 98de173de9d694de28aea0c94c7c150ed75fb744 (diff) |
Don't return in mc_foreach... loop
Diffstat (limited to 'src/async/pop')
-rw-r--r-- | src/async/pop/MCPOPDeleteMessagesOperation.cpp | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/src/async/pop/MCPOPDeleteMessagesOperation.cpp b/src/async/pop/MCPOPDeleteMessagesOperation.cpp index 40cf11f6..b57a60fa 100644 --- a/src/async/pop/MCPOPDeleteMessagesOperation.cpp +++ b/src/async/pop/MCPOPDeleteMessagesOperation.cpp @@ -39,23 +39,11 @@ void POPDeleteMessagesOperation::main() return; ErrorCode error; -#if 0 - for(unsigned int i = 0 ; i < mMessageIndexes->rangesCount() ; i ++) { - Range range = mMessageIndexes->allRanges()[i]; - for(unsigned int k = 0 ; k <= range.length ; k ++) { - session()->session()->deleteMessage((unsigned int) (range.location + k), &error); - if (error != ErrorNone) { - setError(error); - return; - } - } - } -#endif mc_foreachindexset(index, mMessageIndexes) { session()->session()->deleteMessage((unsigned int) index, &error); if (error != ErrorNone) { setError(error); - return; + break; } } session()->session()->disconnect(); |