Skip to content

Commit 3e433e7

Browse files
committed
fix: 修复未配对状态的设备发起回连的问题
未配对的设备不主动发起回连 Log: PMS: BUG-315939 Influence: 设备回连
1 parent 40723dd commit 3e433e7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

system/bluetooth1/device.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// SPDX-FileCopyrightText: 2018 - 2022 UnionTech Software Technology Co., Ltd.
1+
// SPDX-FileCopyrightText: 2018 - 2026 UnionTech Software Technology Co., Ltd.
22
//
33
// SPDX-License-Identifier: GPL-3.0-or-later
44

@@ -349,7 +349,7 @@ func (d *device) connectProperties() {
349349
logger.Debug("sinceConnected:", sinceConnected)
350350
logger.Debug("retryConnectCount:", d.retryConnectCount)
351351

352-
if sinceConnected < 300*time.Millisecond {
352+
if sinceConnected < 300*time.Millisecond && d.Paired {
353353
if d.retryConnectCount == 0 {
354354
go func() {
355355
err := d.Connect()

0 commit comments

Comments
 (0)