Show
Ignore:
Timestamp:
06/08/08 17:55:51 (7 months ago)
Author:
flynd
Message:

Fixed a mutex problem when trying to go online. And don't use data for user after we've released lock.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/console/src/console.cpp

    r6232 r6244  
    534534      if (u != NULL) 
    535535      { 
    536         if (u->GetInGroup(m_nGroupType, m_nCurrentGroup)) 
     536        bool isInGroup = u->GetInGroup(m_nGroupType, m_nCurrentGroup); 
     537        gUserManager.DropUser(u); 
     538 
     539        if (isInGroup) 
    537540        { 
    538541          CreateUserList(); 
    539542          PrintUsers(); 
    540543        } 
    541         gUserManager.DropUser(u); 
    542544      } 
    543545