diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2015-11-28 12:45:05 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2015-11-28 13:02:21 +0900 |
| commit | 699f04d0b8a93dd92a85f68cd8c307b5f3fb4741 (patch) | |
| tree | ff92f17cb37dff734de5e461609cf0ea1e35204b /src/Option.h | |
| parent | d0b6a88f9c2eeea46ea4a8d2fd769b45d138185d (diff) | |
Disable --deferred-input when --save-session is used together
With --deferred-input=true, aria2 only reads input file to fill active
download slots, while keeping input file open. Meanwhile,
--save-session saves all download info inside memory, but this does
not take into account of unread item in input file. This will lead to
lose input data in saved session file. Also current BufferedFile
implementation used to read/write input/output file take a lock on
Windows. This effectively prevents session serializer from writing
session data to the same file which is still kept open because of
--deferred-input. See GH-493
Diffstat (limited to 'src/Option.h')
| -rw-r--r-- | src/Option.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Option.h b/src/Option.h index 7cbf7648..b9b4cfab 100644 --- a/src/Option.h +++ b/src/Option.h @@ -76,6 +76,8 @@ public: double getAsDouble(PrefPtr pref) const; // Removes |pref| from this object. This function does not modify // parent_. + void removeLocal(PrefPtr pref); + // Removes |pref| from this object from all option hierarchy. void remove(PrefPtr pref); // Removes all option values from this object. This function does // not modify parent_. |
