1
0
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:
Dominik Schmidt
2013-04-18 19:03:52 +02:00
parent cf6d37041b
commit 14fb8a8533

View File

@@ -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() );
} }