CoreWLan: properly wait for scan thread to finish

Terminating the scan thread is leading to crashes. So was the previous
solution to use wait(5000), since the scan thread may take longer than
that.

Task-number: QTBUG-36000
Change-Id: I5c37ba5ba3f5c156fca30f3dacaa998c15f76be8
Reviewed-by: Morten Johan Sørvig <morten.sorvig@theqtcompany.com>
This commit is contained in:
Dyami Caliri 2014-10-24 12:57:09 -07:00
parent c96b5d2b06
commit 10c62c894c

View File

@ -430,7 +430,6 @@ QCoreWlanEngine::QCoreWlanEngine(QObject *parent)
QCoreWlanEngine::~QCoreWlanEngine()
{
scanThread->terminate();
scanThread->wait();
while (!foundConfigurations.isEmpty())