diff --git a/src/bt_peer_connection.cpp b/src/bt_peer_connection.cpp index 9d1b7f9e5..3752c7baf 100644 --- a/src/bt_peer_connection.cpp +++ b/src/bt_peer_connection.cpp @@ -2635,6 +2635,8 @@ namespace libtorrent TORRENT_ASSERT(!m_rc4_encrypted || m_RC4_handler.get()); #endif + if (is_seed()) TORRENT_ASSERT(upload_only()); + if (!in_handshake()) { TORRENT_ASSERT(m_sent_handshake); diff --git a/src/peer_connection.cpp b/src/peer_connection.cpp index 46cea6184..778f81d87 100644 --- a/src/peer_connection.cpp +++ b/src/peer_connection.cpp @@ -519,6 +519,7 @@ namespace libtorrent #endif // if this is a web seed. we don't have a peer_info struct if (m_peer_info) m_peer_info->seed = true; + m_upload_only = true; t->peer_has_all(); if (t->is_finished()) send_not_interested();