summaryrefslogtreecommitdiff
path: root/src/threading/thread.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/threading/thread.cpp')
-rw-r--r--src/threading/thread.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/threading/thread.cpp b/src/threading/thread.cpp
index 0996a9e34..57b551503 100644
--- a/src/threading/thread.cpp
+++ b/src/threading/thread.cpp
@@ -117,9 +117,9 @@ bool Thread::start()
try {
m_thread_obj = new std::thread(threadProc, this);
- m_thread_id = m_thread->get_id();
- m_thread_handle = m_thread->native_handle();
- } except (const std::system_error &e) {
+ m_thread_id = m_thread_obj->get_id();
+ m_thread_handle = m_thread_obj->native_handle();
+ } catch (const std::system_error &e) {
return false;
}