mirror of
https://github.com/gnustep/libs-gsweb.git
synced 2025-02-20 18:32:29 +00:00
* GSWeb.framework/GSWSessionServerStore.m/.h:
o changes for checkin/checkout code rewriting git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@17025 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
d406f31b59
commit
20fbd69830
1 changed files with 9 additions and 13 deletions
|
@ -113,21 +113,17 @@ RCS_ID("$Id$")
|
|||
{
|
||||
//OK
|
||||
GSWSession* session=nil;
|
||||
BOOL isSessionIDCheckedOut=NO;
|
||||
LOGObjectFnStart();
|
||||
NSDebugMLLog(@"sessions",@"aSessionID=%@",aSessionID);
|
||||
NSDebugMLLog(@"sessions",@"_usedIDs=%@",_usedIDs);
|
||||
isSessionIDCheckedOut=[self _isSessionIDCheckedOut:aSessionID];
|
||||
if (!isSessionIDCheckedOut)
|
||||
{
|
||||
NSDebugMLLog(@"sessions",@"_sessions=%@",_sessions);
|
||||
session=[_sessions objectForKey:aSessionID];
|
||||
NSDebugMLLog(@"sessions",@"session=%@",session);
|
||||
[session retain]; //to avoid discarding it now
|
||||
[session autorelease]; //discard it 'later'
|
||||
[_sessions removeObjectForKey:aSessionID];
|
||||
NSDebugMLLog(@"sessions",@"_sessions=%@",_sessions);
|
||||
};
|
||||
|
||||
NSDebugMLLog(@"sessions",@"_sessions=%@",_sessions);
|
||||
session=[_sessions objectForKey:aSessionID];
|
||||
NSDebugMLLog(@"sessions",@"session=%@",session);
|
||||
RETAIN(session); //to avoid discarding it now
|
||||
[_sessions removeObjectForKey:aSessionID];
|
||||
NSDebugMLLog(@"sessions",@"_sessions=%@",_sessions);
|
||||
AUTORELEASE(session); //discard it 'later'
|
||||
|
||||
LOGObjectFnStop();
|
||||
return session;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue