nb: Check threads only when LOOL_CHECK_THREADS is set.

Change-Id: I4137685eb956469d419bded318b83de2b10ce19d
This commit is contained in:
Jan Holesovsky 2017-03-09 17:32:55 +01:00
parent b895393cea
commit 4eccd4d7b4

View file

@ -163,7 +163,7 @@ public:
virtual bool isCorrectThread()
{
#if ENABLE_DEBUG
return std::this_thread::get_id() == _owner;
return !getenv("LOOL_CHECK_THREADS") || std::this_thread::get_id() == _owner;
#else
return true;
#endif