mirror of
https://github.com/BililiveRecorder/BililiveRecorder.git
synced 2024-11-15 19:22:19 +08:00
bugfix
This commit is contained in:
parent
01c52893dd
commit
028e574733
|
@ -46,7 +46,7 @@ namespace BililiveRecorder.Core
|
|||
{
|
||||
logger.Warn(e.Error, "弹幕连接被断开,将每30秒尝试重连一次");
|
||||
bool connect_result = false;
|
||||
while (!connect_result && !TokenSource.Token.IsCancellationRequested)
|
||||
while (!receiver.IsConnected && !TokenSource.Token.IsCancellationRequested)
|
||||
{
|
||||
Thread.Sleep(1000 * 30); // 备注:这是运行在 ReceiveMessageLoop 线程上的
|
||||
logger.Log(Roomid, LogLevel.Info, "重连弹幕服务器...");
|
||||
|
|
Loading…
Reference in New Issue
Block a user