From 297bb00d9723df86aa316d4b1da0f269f237b00b Mon Sep 17 00:00:00 2001 From: Richard Frith-MacDonald Date: Mon, 29 Jun 1998 14:28:19 +0000 Subject: [PATCH] Fixed error in timeout of cached proxies. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@2826 72102866-910b-0410-8b05-ffd578937521 --- Source/NSConnection.m | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Source/NSConnection.m b/Source/NSConnection.m index 63d9ffe09..bc3ee10ef 100644 --- a/Source/NSConnection.m +++ b/Source/NSConnection.m @@ -367,7 +367,7 @@ static int messages_received_count; return [self rootProxyAtPort: [p autorelease]]; } -+ (void) timeout: (NSTimer*)t ++ (void) _timeout: (NSTimer*)t { NSArray *cached_locals; int i; @@ -380,6 +380,10 @@ static int messages_received_count; NSMapRemove(all_connections_local_cached, [item obj]); } } + if ([cached_locals count] == 0) { + [t invalidate]; + timer = nil; + } } - (void) addRequestMode: (NSString*)mode