summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/corelib/thread/qthread_symbian.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/corelib/thread/qthread_symbian.cpp b/src/corelib/thread/qthread_symbian.cpp
index bb1a4a7..4bbf5e3 100644
--- a/src/corelib/thread/qthread_symbian.cpp
+++ b/src/corelib/thread/qthread_symbian.cpp
@@ -78,12 +78,7 @@ static void init_symbian_thread_handle(RThread &thread)
{
thread = RThread();
TThreadId threadId = thread.Id();
- thread.Open(threadId);
-
- // Make thread handle accessible process wide
- RThread originalCloser = thread;
- thread.Duplicate(thread, EOwnerProcess);
- originalCloser.Close();
+ qt_symbian_throwIfError(thread.Open(threadId, EOwnerProcess));
}
QThreadData *QThreadData::current()