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