mirror of
https://github.com/BililiveRecorder/BililiveRecorder.git
synced 2024-11-16 03:32:20 +08:00
Fix ourdvsss's request timeout handling
This commit is contained in:
parent
3f59cd8178
commit
8445ec1b1c
|
@ -310,7 +310,8 @@ namespace BililiveRecorder.Core
|
||||||
};
|
};
|
||||||
|
|
||||||
_stream = await _response.Content.ReadAsStreamAsync();
|
_stream = await _response.Content.ReadAsStreamAsync();
|
||||||
_stream.ReadTimeout = 3 * 1000;
|
if (_response.Headers.ConnectionClose != true)
|
||||||
|
_stream.ReadTimeout = 3 * 1000;
|
||||||
|
|
||||||
StreamDownloadTask = Task.Run(_ReadStreamLoop);
|
StreamDownloadTask = Task.Run(_ReadStreamLoop);
|
||||||
TriggerPropertyChanged(nameof(IsRecording));
|
TriggerPropertyChanged(nameof(IsRecording));
|
||||||
|
|
Loading…
Reference in New Issue
Block a user