bug 1121058 - h2 assert stream id before cleanup r=hurley

This commit is contained in:
Patrick McManus 2015-01-13 13:10:38 -05:00
Родитель 581a6510e4
Коммит 33e101f503
1 изменённых файлов: 1 добавлений и 1 удалений

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

@ -2682,8 +2682,8 @@ Http2Session::WriteSegments(nsAHttpSegmentWriter *writer,
"needscleanup=%p. cleanup stream based on "
"stream->writeSegments returning code %x\n",
this, streamID, mNeedsCleanup, rv));
CleanupStream(streamID, NS_OK, CANCEL_ERROR);
MOZ_ASSERT(!mNeedsCleanup || mNeedsCleanup->StreamID() == streamID);
CleanupStream(streamID, NS_OK, CANCEL_ERROR);
mNeedsCleanup = nullptr;
return NS_OK;
}