dde-daemon
dde-daemon copied to clipboard
fix: connect to pulseaudio timeout
Waiting for the services to active
Bug: https://pms.uniontech.com/bug-view-275185.html
TAG Bot
TAG: 6.0.46 EXISTED: no DISTRIBUTION: unstable
deepin pr auto review
关键摘要:
- 在
startAudioServer函数中,wg.Add(1)和wg.Done()的使用可能会导致竞态条件,因为wg.Done()在if value == "active" && !actived条件成立时被调用,而wg.Add(1)在if state != "active"条件不成立时被调用。这可能会导致wg.Wait()在state变为"active"时立即返回,而没有等待wg.Done()完成。 serverSystemdUnit.InitSignalExt(sigLoop, true)的调用可能不会按预期工作,因为serverSystemdUnit.Unit().ActiveState().ConnectChanged的连接应该已经通过serverSystemdUnit.InitSignalExt初始化。logger.Warning("failed to get audio server active state", err)可能会导致日志输出错误,因为err可能不是预期的错误类型。wg.Wait()在循环中调用可能会导致程序在等待事件完成时无限期地阻塞。
是否建议立即修改: 是
/integrate
AutoIntegrationPr Bot auto integrate with pr url: https://github.com/deepin-community/Repository-Integration/pull/2037 PrNumber: 2037 PrBranch: auto-integration-11026869308
[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by: ArchieMeng, zsien
The full list of commands accepted by this bot can be found here.
Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment