mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-21 13:21:52 +02:00
Merge remote-tracking branch 'origin/master'
Conflicts: src/libtomahawk/sip/SipPlugin.cpp src/resolverconfigdelegate.cpp src/sip/jreen/jabber.cpp src/sip/jreen/jabber.h
This commit is contained in:
6
thirdparty/liblastfm2/src/ws/ws.cpp
vendored
6
thirdparty/liblastfm2/src/ws/ws.cpp
vendored
@@ -218,11 +218,15 @@ lastfm::setNetworkAccessManager( QNetworkAccessManager* nam )
|
||||
|
||||
QMutexLocker l( &namAccessMutex );
|
||||
QThread* thread = QThread::currentThread();
|
||||
QNetworkAccessManager* oldNam = 0;
|
||||
if ( threadNamHash.contains( thread ) && ourNamHash.contains( thread ) && ourNamHash[thread] )
|
||||
delete threadNamHash[thread];
|
||||
oldNam = threadNamHash[thread];
|
||||
|
||||
threadNamHash[thread] = nam;
|
||||
ourNamHash[thread] = false;
|
||||
|
||||
if ( oldNam )
|
||||
delete oldNam;
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user