From 19077f76df499427551e2869ebfd1ad948d4dba4 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sun, 9 Jun 2013 00:44:59 -0400 Subject: [PATCH] Bug - Fixed bug with backlog parsing. --- src/commands/CmdSync.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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.