mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-07 10:42:31 +00:00
* Added the framework for a download scheduler.
* Added "state_changed" variable to downloads that returns the last time the download called DownloadList::pause/resume. git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@674 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
@@ -131,13 +131,21 @@ VariableObject::set(const torrent::Object& arg) {
|
||||
break;
|
||||
|
||||
case torrent::Object::TYPE_STRING:
|
||||
if (arg.type() == torrent::Object::TYPE_STRING)
|
||||
if (arg.is_string())
|
||||
root->insert_key(m_key, arg);
|
||||
else
|
||||
throw torrent::input_error("VariableObject could not convert to string.");
|
||||
|
||||
break;
|
||||
|
||||
case torrent::Object::TYPE_VALUE:
|
||||
if (arg.is_value())
|
||||
root->insert_key(m_key, arg);
|
||||
else
|
||||
throw torrent::input_error("VariableObject could not convert to value.");
|
||||
|
||||
break;
|
||||
|
||||
default:
|
||||
throw torrent::input_error("VariableObject unsupported type restriction.");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user