Commit b9748419 authored by Ramon Nou's avatar Ramon Nou
Browse files

Add progress logging and fix iterator increment

parent 0875bbcd
Loading
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -116,6 +116,7 @@ worker::run() {
            int index = I->second.second;
            if(op) {
                index = op->progress(index);
                LOGGER_INFO("Progress: {}", index);
                if(index == -1) {
                    // operation finished
                    cargo::error_code ec = op->progress();
@@ -133,6 +134,7 @@ worker::run() {
                                     transfer_state::running, op->bw());
                    }
                    I->second.second = index;
                    ++I;
                }
            }
        }