Fixed create/AsyncRead stuff.

This commit is contained in:
warren%netscape.com 1999-04-14 08:13:35 +00:00
parent f52def1ff3
commit ec91edbe39

View File

@ -301,8 +301,10 @@ ParallelReadTest(char* dirName, nsIFileTransportService* fts)
NS_ASSERTION(listener, "QI failed");
nsITransport* trans;
rv = fts->AsyncRead(spec, nsnull, reader->GetEventQueue(),
listener, &trans);
rv = fts->CreateTransport(spec, &trans);
NS_ASSERTION(NS_SUCCEEDED(rv), "create failed");
rv = trans->AsyncRead(nsnull, reader->GetEventQueue(), listener);
NS_ASSERTION(NS_SUCCEEDED(rv), "AsyncRead failed");
// the reader thread will hang on to these objects until it quits