Fixed nettest to work with threaded netlib...

git-svn-id: svn://10.0.0.236/trunk@10531 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
rpotts%netscape.com
1998-09-20 05:13:42 +00:00
parent 1524945a4b
commit d0c8f23dbc

View File

@@ -24,6 +24,7 @@
#endif
#include "plstr.h"
#include "plevent.h"
#include "nsIStreamListener.h"
#include "nsIInputStream.h"
@@ -221,6 +222,7 @@ int main(int argc, char **argv)
return 0;
}
PL_InitializeEventsLib("");
nsRepository::RegisterFactory(kNetServiceCID, NETLIB_DLL, PR_FALSE, PR_FALSE);
bTraceEnabled = PR_FALSE;
@@ -284,6 +286,7 @@ int main(int argc, char **argv)
in = pURL->Open((PRInt32*)&result);
ReadStreamSynchronously(in);
NS_IF_RELEASE(in);
urlLoaded = 1;
}