Oops... Forgot to check this in... Allow multiple URLs to be processed before exiting the app.

This commit is contained in:
rpotts%netscape.com 1999-06-23 19:27:44 +00:00
Родитель a9393b55b3
Коммит ed37052d62
1 изменённых файлов: 4 добавлений и 3 удалений

Просмотреть файл

@ -49,7 +49,7 @@ static NS_DEFINE_CID(kEventQueueServiceCID, NS_EVENTQUEUESERVICE_CID);
static NS_DEFINE_CID(kIOServiceCID, NS_IOSERVICE_CID);
static PRTime gElapsedTime;
static int gKeepRunning = 1;
static int gKeepRunning = 0;
static nsIEventQueue* gEventQ = nsnull;
class TestHTTPEventSink : public nsIHTTPEventSink
@ -228,7 +228,7 @@ InputTestConsumer::OnStopBinding(nsISupports* context,
nsresult aStatus,
const PRUnichar* aMsg)
{
gKeepRunning = 0;
gKeepRunning -= 1;
printf("\n+++ InputTestConsumer::OnStopBinding (status = %x) +++\n", aStatus);
return NS_OK;
}
@ -372,6 +372,7 @@ main(int argc, char* argv[])
for (i=1; i<argc; i++) {
rv = StartLoadingURL(argv[i]);
if (NS_FAILED(rv)) return rv;
gKeepRunning += 1;
}
// Enter the message pump to allow the URL load to proceed.
@ -383,7 +384,7 @@ main(int argc, char* argv[])
TranslateMessage(&msg);
DispatchMessage(&msg);
} else {
gKeepRunning = FALSE;
gKeepRunning = 0;
}
#else
#ifdef XP_MAC