feat: 添加 ExecuteSyncEvent 方法用于同步执行事件

This commit is contained in:
ydajiang
2025-04-19 16:19:15 +08:00
parent 2d1cd874f4
commit 3fe77446e0
2 changed files with 22 additions and 31 deletions

View File

@@ -328,7 +328,7 @@ func LoopEvent(source Source) {
}
var ok bool
source.PostEvent(func() {
source.ExecuteSyncEvent(func() {
source.ProbeTimeout()
ok = len(source.OriginTracks()) > 0
})