mirror of
https://github.com/gnustep/libs-gsweb.git
synced 2025-02-24 04:01:16 +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
d607fa669c
commit
b113dccb74
1 changed files with 9 additions and 13 deletions
|
@ -113,21 +113,17 @@ RCS_ID("$Id$")
|
||||||
{
|
{
|
||||||
//OK
|
//OK
|
||||||
GSWSession* session=nil;
|
GSWSession* session=nil;
|
||||||
BOOL isSessionIDCheckedOut=NO;
|
|
||||||
LOGObjectFnStart();
|
LOGObjectFnStart();
|
||||||
NSDebugMLLog(@"sessions",@"aSessionID=%@",aSessionID);
|
NSDebugMLLog(@"sessions",@"aSessionID=%@",aSessionID);
|
||||||
NSDebugMLLog(@"sessions",@"_usedIDs=%@",_usedIDs);
|
|
||||||
isSessionIDCheckedOut=[self _isSessionIDCheckedOut:aSessionID];
|
|
||||||
if (!isSessionIDCheckedOut)
|
|
||||||
{
|
|
||||||
NSDebugMLLog(@"sessions",@"_sessions=%@",_sessions);
|
NSDebugMLLog(@"sessions",@"_sessions=%@",_sessions);
|
||||||
session=[_sessions objectForKey:aSessionID];
|
session=[_sessions objectForKey:aSessionID];
|
||||||
NSDebugMLLog(@"sessions",@"session=%@",session);
|
NSDebugMLLog(@"sessions",@"session=%@",session);
|
||||||
[session retain]; //to avoid discarding it now
|
RETAIN(session); //to avoid discarding it now
|
||||||
[session autorelease]; //discard it 'later'
|
|
||||||
[_sessions removeObjectForKey:aSessionID];
|
[_sessions removeObjectForKey:aSessionID];
|
||||||
NSDebugMLLog(@"sessions",@"_sessions=%@",_sessions);
|
NSDebugMLLog(@"sessions",@"_sessions=%@",_sessions);
|
||||||
};
|
AUTORELEASE(session); //discard it 'later'
|
||||||
|
|
||||||
LOGObjectFnStop();
|
LOGObjectFnStop();
|
||||||
return session;
|
return session;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue