The client is always valid when checked from its own thread.
git-svn-id: http://voip.null.ro/svn/yate@2602 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
parent
ebe61faa5d
commit
eefdcbd3ed
|
@ -1075,10 +1075,10 @@ public:
|
|||
|
||||
/**
|
||||
* Check if the client object still exists and the client or engine is not exiting
|
||||
* @return True if the client is valid (running)
|
||||
* @return True if the client is valid (running) or the method is called from client's thread
|
||||
*/
|
||||
static inline bool valid()
|
||||
{ return self() && !(exiting() || Engine::exiting()); }
|
||||
{ return self() && (self() == Thread::current() || !(exiting() || Engine::exiting())); }
|
||||
|
||||
inline static bool changing()
|
||||
{ return (s_changing > 0); }
|
||||
|
|
Loading…
Reference in New Issue