- Fixed bug with backlog parsing.
This commit is contained in:
Paul Beckingham 2013-06-09 00:44:59 -04:00
parent 8e5b57954d
commit 19077f76df

View file

@ -113,10 +113,11 @@ int CmdSync::execute (std::string& output)
std::vector <std::string> lines = context.tdb2.backlog.get_lines ();
std::vector <std::string>::iterator i;
for (i = lines.begin (); i != lines.end (); ++i)
if ((*i)[0] == '{')
{
payload += *i + "\n";
if ((*i)[0] == '{')
++upload_count;
payload += *i + "\n";
}
}