forked from premiere/premiere-libtorrent
fixed assert when connecting to upload-only peers
This commit is contained in:
parent
cc67830faf
commit
fddd1ee8e2
|
@ -215,7 +215,12 @@ namespace libtorrent
|
||||||
|
|
||||||
bool is_seed() const;
|
bool is_seed() const;
|
||||||
|
|
||||||
void set_upload_only(bool u) { m_upload_only = u; }
|
void set_upload_only(bool u)
|
||||||
|
{
|
||||||
|
m_upload_only = u;
|
||||||
|
disconnect_if_redundant();
|
||||||
|
}
|
||||||
|
|
||||||
bool upload_only() const { return m_upload_only; }
|
bool upload_only() const { return m_upload_only; }
|
||||||
|
|
||||||
// will send a keep-alive message to the peer
|
// will send a keep-alive message to the peer
|
||||||
|
|
Loading…
Reference in New Issue