зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1437011 - NonBlockingAsyncInputStream::Close() should return NS_OK if already closed, r=froydnj
This commit is contained in:
Родитель
b44f650d0b
Коммит
1f4b9d7e56
|
@ -124,7 +124,9 @@ NonBlockingAsyncInputStream::Close()
|
|||
MutexAutoLock lock(mLock);
|
||||
|
||||
if (mClosed) {
|
||||
return NS_BASE_STREAM_CLOSED;
|
||||
// Here we could return NS_BASE_STREAM_CLOSED as well, but just to avoid
|
||||
// warning messages, let's make everybody happy with a NS_OK.
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
mClosed = true;
|
||||
|
|
Загрузка…
Ссылка в новой задаче