mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-20 15:59:42 +01:00
Set interval to timeout
This commit is contained in:
parent
fab81d7958
commit
f076ab9988
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user