Bug 9568: assertion failure in Safari after quitting Drosera
http://bugzilla.opendarwin.org/show_bug.cgi?id=9568
Call switchToServerNamed:nil and not removeLister to make sure
the server object is set to nil to prevent further removeListener calls.
* Drosera/DebuggerDocument.m:
(-[DebuggerDocument applicationTerminating:]):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@15042
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2006-06-25 Timothy Hatcher <timothy@apple.com>
+
+ Reviewed by Darin.
+
+ Bug 9568: assertion failure in Safari after quitting Drosera
+ http://bugzilla.opendarwin.org/show_bug.cgi?id=9568
+
+ Call switchToServerNamed:nil and not removeLister to make sure
+ the server object is set to nil to prevent further removeListener calls.
+
+ * Drosera/DebuggerDocument.m:
+ (-[DebuggerDocument applicationTerminating:]):
+
2006-06-25 David Kilzer <ddkilzer@kilzer.net>
Reviewed by Darin.
- (void)applicationTerminating:(NSNotification *)notifiction
{
if (server && [[(NSDistantObject *)server connectionForProxy] isValid]) {
- if ([[(NSDistantObject *)server connectionForProxy] isValid])
- [server removeListener:self];
+ [self switchToServerNamed:nil];
// call the runloop for a while to make sure our removeListener: is sent to the server
[[NSRunLoop currentRunLoop] runUntilDate:[NSDate dateWithTimeIntervalSinceNow:0.25]];
}