Fix text in exception

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@28417 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2009-07-28 19:04:40 +00:00
parent 3de3d7bd49
commit 4720907528
2 changed files with 15 additions and 1 deletions

View file

@ -1,3 +1,10 @@
2009-07-28 Richard Frith-Macdonald <rfm@gnu.org>
* Source/NSConnection.m: Correct the text in exception when attempting
to read a response on an invalidated connection.
* Source/Additions/GSMime.m:
Fixup incorrect declaration of method in wrong class implementation.
2009-07-27 David Ayers <ayers@fsfe.org>
* Source/Additions/GSCompatibility.m ([-boolValue]): Only compile

View file

@ -2870,15 +2870,22 @@ static void callEncoder (DOContext *ctxt)
NSTimeInterval last_interval = 0.0001;
NSTimeInterval delay_interval = last_interval;
NSDate *delay_date = nil;
NSRunLoop *runLoop = GSRunLoopForThread(nil);
NSRunLoop *runLoop;
BOOL isLocked = NO;
if (_isValid == NO)
{
[NSException raise: NSObjectInaccessibleException
format: @"Connection has been invalidated"];
}
/*
* If we have sent out a request on a run loop that we don't already
* know about, it must be on a new thread - so if we have multipleThreads
* enabled, we must add the run loop of the new thread so that we can
* get the reply in this thread.
*/
runLoop = GSRunLoopForThread(nil);
if ([_runLoops indexOfObjectIdenticalTo: runLoop] == NSNotFound)
{
if (_multipleThreads == YES)