mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-12 17:14:00 +02:00
Assert that no peers with empty contactId are announced, i.e. forcing account authors to set it
This commit is contained in:
@@ -133,6 +133,8 @@ PeerInfo::~PeerInfo()
|
||||
void
|
||||
PeerInfo::announce()
|
||||
{
|
||||
Q_ASSERT( !contactId().isEmpty() );
|
||||
|
||||
Servent::instance()->registerPeer( weakRef().toStrongRef() );
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user