mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-24 02:42:48 +00:00
kio: process events instead of terminating the host information thread
nss resolver really does not like it when its thread is terminated/canceled and randomly causes exception to be raised or segmentation fault Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
c42a8327a2
commit
6e9cca36ab
1 changed files with 1 additions and 1 deletions
|
@ -586,7 +586,7 @@ QHostInfo KUriFilterPlugin::resolveName(const QString &hostname, unsigned long t
|
|||
khostinfothread.start();
|
||||
while (!khostinfothread.isFinished()) {
|
||||
if (hostinfotimer.elapsed() >= timeout) {
|
||||
khostinfothread.terminate();
|
||||
khostinfothread.quit();
|
||||
return QHostInfo();
|
||||
}
|
||||
QCoreApplication::processEvents();
|
||||
|
|
Loading…
Add table
Reference in a new issue