From dbf443beb7cd4b81f75f324c3c08289c91be929e Mon Sep 17 00:00:00 2001 From: kervala Date: Sat, 10 Dec 2016 19:04:29 +0100 Subject: [PATCH] Fixed: C++11 forbids to throw exception in destructor --HG-- branch : develop --- code/nel/src/misc/p_thread.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/code/nel/src/misc/p_thread.cpp b/code/nel/src/misc/p_thread.cpp index 778270d17..a38fb84b2 100644 --- a/code/nel/src/misc/p_thread.cpp +++ b/code/nel/src/misc/p_thread.cpp @@ -50,8 +50,11 @@ struct CPMainThread : public CPThread ~CPMainThread() { - if(pthread_key_delete(threadSpecificKey) != 0) - throw EThread("cannot delete thread specific storage key."); + if (pthread_key_delete(threadSpecificKey) != 0) + { + nlwarning("cannot delete thread specific storage key."); + // throw EThread("cannot delete thread specific storage key."); + } } };