mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-13 09:34:53 +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
|
void
|
||||||
PeerInfo::announce()
|
PeerInfo::announce()
|
||||||
{
|
{
|
||||||
|
Q_ASSERT( !contactId().isEmpty() );
|
||||||
|
|
||||||
Servent::instance()->registerPeer( weakRef().toStrongRef() );
|
Servent::instance()->registerPeer( weakRef().toStrongRef() );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user