introduced an error state for torrents. Torrents with an error are not restarted automatically

This commit is contained in:
Arvid Norberg
2008-05-20 07:57:44 +00:00
parent aed8f355b0
commit 67354421fb
7 changed files with 33 additions and 4 deletions

View File

@@ -1253,6 +1253,13 @@ int main(int ac, char* av[])
bool paused = h.is_paused();
bool auto_managed = h.is_auto_managed();
out << std::setw(13) << std::setiosflags(std::ios::left);
if (!s.error.empty())
{
out << esc("31") << "error " << s.error;
out << esc("0") << std::endl;
continue;
}
if (paused && !auto_managed) out << "paused";
else if (paused && auto_managed) out << "queued";
else