summaryrefslogtreecommitdiff
path: root/src/network/bearer
diff options
context:
space:
mode:
authorShane Kearns <shane.kearns@accenture.com>2011-03-29 11:58:32 +0100
committerShane Kearns <shane.kearns@accenture.com>2011-03-31 15:42:52 +0100
commitf7a6e37cab7a68451b176d22acf34ed41d4f1d79 (patch)
tree1576b6e10004c9b41e9943655085f78d92667959 /src/network/bearer
parent00121f3184ade624ca9cbb2524222dcab9f67342 (diff)
downloadqt4-tools-f7a6e37cab7a68451b176d22acf34ed41d4f1d79.tar.gz
Fix deadlock in QNetworkSession::stop
The mutex added needs to be recursive, as stop calls close internally, which also needs to lock the mutex. Reviewed-by: Markus Goetz
Diffstat (limited to 'src/network/bearer')
-rw-r--r--src/network/bearer/qnetworksession_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/bearer/qnetworksession_p.h b/src/network/bearer/qnetworksession_p.h
index b359f8062f..a92b7ce315 100644
--- a/src/network/bearer/qnetworksession_p.h
+++ b/src/network/bearer/qnetworksession_p.h
@@ -75,7 +75,7 @@ class Q_NETWORK_EXPORT QNetworkSessionPrivate : public QObject
public:
QNetworkSessionPrivate() : QObject(),
- state(QNetworkSession::Invalid), isOpen(false)
+ state(QNetworkSession::Invalid), isOpen(false), mutex(QMutex::Recursive)
{}
virtual ~QNetworkSessionPrivate()
{}