Skip to content
This repository has been archived by the owner on Oct 12, 2023. It is now read-only.

Commit

Permalink
處理訊息使用懸掛防止下一個訊息阻塞等待
Browse files Browse the repository at this point in the history
  • Loading branch information
eric2788 committed May 3, 2022
1 parent 848475e commit eab886d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
3 changes: 1 addition & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,4 @@

更新記錄:

- 修復重複監聽的問題 (這次為真)
- 新增自動選擇低延遲線路防止經常掉線
- 迸發處理訊息
3 changes: 2 additions & 1 deletion services/blive/live_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,8 @@ func LaunchLiveServer(

// 但開播指令推送多次保留
}
handle(liveInfo, tp.Msg)
// 使用懸掛防止下一個訊息阻塞等待
go handle(liveInfo, tp.Msg)
case <-ctx.Done():
log.Infof("房間 %v 監聽中止。\n", realRoom)
finished(nil, nil)
Expand Down
2 changes: 1 addition & 1 deletion services/updater/updater.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
)

const (
VersionTag = "0.1.12"
VersionTag = "0.1.13"
repoUrl = "https://api.github.com/repos/eric2788/biligo-live-ws/releases/latest"
)

Expand Down

0 comments on commit eab886d

Please sign in to comment.