mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-03 05:32:53 -04:00
Fixed issue with lost downloads when RetroShare exits (or crashes) during the load of the file transfer items. The pending list was not saved.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5153 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
e23f7e1055
commit
ec501c6d6a
2 changed files with 52 additions and 8 deletions
|
@ -246,7 +246,15 @@ class RsFileTransfer: public RsItem
|
|||
public:
|
||||
RsFileTransfer() :RsItem(RS_PKT_VERSION1, RS_PKT_CLASS_CONFIG, RS_PKT_TYPE_FILE_CONFIG, RS_PKT_SUBTYPE_FILE_TRANSFER)
|
||||
{
|
||||
return;
|
||||
state = 0;
|
||||
in = 0;
|
||||
transferred = 0;
|
||||
crate = 0;
|
||||
trate = 0;
|
||||
lrate = 0;
|
||||
ltransfer = 0;
|
||||
flags = 0;
|
||||
chunk_strategy = 0;
|
||||
}
|
||||
virtual ~RsFileTransfer();
|
||||
virtual void clear();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue