diff --git a/src/commands/CmdSync.cpp b/src/commands/CmdSync.cpp index e97ea6914..3fb4c0c00 100644 --- a/src/commands/CmdSync.cpp +++ b/src/commands/CmdSync.cpp @@ -113,11 +113,12 @@ int CmdSync::execute (std::string& output) std::vector lines = context.tdb2.backlog.get_lines (); std::vector ::iterator i; for (i = lines.begin (); i != lines.end (); ++i) + { if ((*i)[0] == '{') - { - payload += *i + "\n"; ++upload_count; - } + + payload += *i + "\n"; + } } // Send 'sync' + payload.