mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-14 10:05:32 +02:00
* Some routers are just too slow. Increased wait timeout before killing the PortFwdThread.
This commit is contained in:
@@ -23,7 +23,7 @@ PortFwdThread::~PortFwdThread()
|
|||||||
{
|
{
|
||||||
qDebug() << Q_FUNC_INFO << "waiting for event loop to finish...";
|
qDebug() << Q_FUNC_INFO << "waiting for event loop to finish...";
|
||||||
quit();
|
quit();
|
||||||
wait( 2500 );
|
wait( 10000 );
|
||||||
|
|
||||||
delete m_portfwd;
|
delete m_portfwd;
|
||||||
}
|
}
|
||||||
@@ -49,7 +49,7 @@ PortFwdThread::work()
|
|||||||
m_portfwd->remove( tryport );
|
m_portfwd->remove( tryport );
|
||||||
}
|
}
|
||||||
|
|
||||||
for( int r = 0; r < 5; ++r )
|
for( int r = 0; r < 3; ++r )
|
||||||
{
|
{
|
||||||
qDebug() << "Trying to setup portfwd on" << tryport;
|
qDebug() << "Trying to setup portfwd on" << tryport;
|
||||||
if( m_portfwd->add( tryport, m_port ) )
|
if( m_portfwd->add( tryport, m_port ) )
|
||||||
|
Reference in New Issue
Block a user