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:
marian 2009-04-28 12:33:42 +00:00
parent ebe61faa5d
commit eefdcbd3ed
1 changed files with 2 additions and 2 deletions

View File

@ -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); }