Skip to content

Commit 9a3d310

Browse files
committed
fix: Update Bluetooth state as soon as possible
as title Log: as title Pms: BUG-313533
1 parent 506b227 commit 9a3d310

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

system/bluetooth1/adapter.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,8 @@ func (a *adapter) connectProperties() {
179179
a.bt.syncCommonToBackupDevices(a.Path)
180180
}
181181
// Sleep for 1s and wait for bluez to set the attributes before sending the attribute change signal
182-
time.Sleep(1 * time.Second)
182+
// 延时1s发送状态,会导致前端蓝牙插件图标由disable变化为enable,不符合需求。需求要求插入蓝牙,蓝牙是enable打开状态。
183+
// time.Sleep(1 * time.Second)
183184
a.notifyPropertiesChanged()
184185
})
185186
if err != nil {

0 commit comments

Comments
 (0)