mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1192708 - Remove redundant call to CloseChannel. r=roc.
This commit is contained in:
parent
2c6998afa1
commit
00d2f51f4f
@ -1008,13 +1008,13 @@ ChannelMediaResource::CacheClientSeek(int64_t aOffset, bool aResume)
|
||||
|
||||
mOffset = aOffset;
|
||||
|
||||
// Don't report close of the channel because the channel is not closed for
|
||||
// download ended, but for internal changes in the read position.
|
||||
mIgnoreClose = true;
|
||||
|
||||
// Don't create a new channel if we are still suspended. The channel will
|
||||
// be recreated when we are resumed.
|
||||
if (mSuspendCount > 0) {
|
||||
// Close the existing channel to force the channel to be recreated at
|
||||
// the correct offset upon resume.
|
||||
if (mChannel) {
|
||||
mIgnoreClose = true;
|
||||
CloseChannel();
|
||||
}
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user