mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-07-31 19:30:21 +02:00
Set interval to timeout
This commit is contained in:
@@ -316,6 +316,7 @@ Servent::registerLazyOffer(const QString &key, const peerinfo_ptr &peerInfo, con
|
||||
{
|
||||
m_lazyoffers[key] = QPair< peerinfo_ptr, QString >( peerInfo, nodeid );
|
||||
QTimer* timer = new QTimer( this );
|
||||
timer->setInterval( timeout );
|
||||
timer->setSingleShot( true );
|
||||
NewClosure( timer, SIGNAL( timeout() ), this, SLOT( deleteLazyOffer( const QString& ) ), key );
|
||||
timer->start();
|
||||
|
Reference in New Issue
Block a user