Added an ifdef to get exit working because the Register and unregister isn't working right

This commit is contained in:
rods@netscape.com
1999-02-17 16:18:17 +00:00
parent 42e96c1ee8
commit c00eacb2f8

View File

@@ -164,7 +164,10 @@ nsAppShellService::DispatchNativeEvent(void * aEvent)
NS_IMETHODIMP
nsAppShellService::Shutdown(void)
{
//mAppShell->Exit();
#if 1
mAppShell->Exit();
#else
while (mWindowList->Count() > 0) {
nsISupports * winSupports = mWindowList->ElementAt(0);
nsCOMPtr<nsIWidget> window(do_QueryInterface(winSupports));
@@ -185,6 +188,7 @@ nsAppShellService::Shutdown(void)
break;
}
}
#endif
return NS_OK;
}