Fixed create/AsyncRead stuff.
git-svn-id: svn://10.0.0.236/trunk@27457 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
c720caf464
commit
f170ef62fa
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user