mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-26 10:05:19 +00:00
Potential patch for libtorrent @ 3507
This commit is contained in:
parent
982aaff2a1
commit
ac418d5935
26
libtorrent.diff
Normal file
26
libtorrent.diff
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
Index: libtorrent/src/storage.cpp
|
||||||
|
===================================================================
|
||||||
|
--- libtorrent/src/storage.cpp (revision 3507)
|
||||||
|
+++ libtorrent/src/storage.cpp (working copy)
|
||||||
|
@@ -2228,7 +2228,7 @@
|
||||||
|
&& m_storage->error() != error_code(ENOENT, get_posix_category()))
|
||||||
|
#endif
|
||||||
|
{
|
||||||
|
- m_piece_data.reset();
|
||||||
|
+ m_piece_data.clear();
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
return 1;
|
||||||
|
Index: libtorrent/src/policy.cpp
|
||||||
|
===================================================================
|
||||||
|
--- libtorrent/src/policy.cpp (revision 3507)
|
||||||
|
+++ libtorrent/src/policy.cpp (working copy)
|
||||||
|
@@ -659,7 +659,7 @@
|
||||||
|
#endif
|
||||||
|
i->second.inet_as = ses.lookup_as(as);
|
||||||
|
#endif
|
||||||
|
- i->source = peer_info::incoming;
|
||||||
|
+ i->second.source = peer_info::incoming;
|
||||||
|
}
|
||||||
|
|
||||||
|
c.set_peer_info(&i->second);
|
Loading…
x
Reference in New Issue
Block a user