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_print.cpp

    r6176 r6244  
    776776  // Get the user's name 
    777777  ICQUser *u = gUserManager.FetchUser(ftman->Uin(), LOCK_R); 
    778   const char *szAlias = u->GetAlias(); 
    779   gUserManager.DropUser(u); 
    780778 
    781779  // Make the title 
     
    783781  ftman->Direction() == D_RECEIVER ? strcpy(szTitle, "File from ") : 
    784782    strcpy(szTitle, "File to "); 
    785   strcat(szTitle, szAlias); 
     783  strcat(szTitle, u->GetAlias()); 
     784 
     785  gUserManager.DropUser(u); 
    786786 
    787787  // Current file name and Current File # slash Total Batch Files