diff options
Diffstat (limited to 'src/DHTTaskQueueImpl.cc')
| -rw-r--r-- | src/DHTTaskQueueImpl.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/DHTTaskQueueImpl.cc b/src/DHTTaskQueueImpl.cc index bbec4374..a7ccae9b 100644 --- a/src/DHTTaskQueueImpl.cc +++ b/src/DHTTaskQueueImpl.cc @@ -16,7 +16,7 @@ * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * In addition, as a special exception, the copyright holders give * permission to link the code of portions of this program with the @@ -42,13 +42,13 @@ DHTTaskQueueImpl::DHTTaskQueueImpl() {} DHTTaskQueueImpl::~DHTTaskQueueImpl() {} void DHTTaskQueueImpl::executeTask(SharedHandle<DHTTask>& task, - std::deque<SharedHandle<DHTTask> >& taskQueue) + std::deque<SharedHandle<DHTTask> >& taskQueue) { while(1) { if(task.isNull() || task->finished()) { task.reset(); if(taskQueue.empty()) { - break; + break; } task = taskQueue.front(); taskQueue.erase(taskQueue.begin()); |
