From 32c644fde8f551762595ef80e2e40f9542d54b84 Mon Sep 17 00:00:00 2001 From: CaiYanPeng Date: Wed, 20 Jul 2022 13:47:10 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=A8=E6=88=B7=E4=B8=8B=E7=BA=BF=E5=87=BA?= =?UTF-8?q?=E7=8E=B0=E6=8F=90=E7=A4=BAbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/Scripts/Devices/Ble/mobile/BleMobileInterface.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Assets/Scripts/Devices/Ble/mobile/BleMobileInterface.cs b/Assets/Scripts/Devices/Ble/mobile/BleMobileInterface.cs index de8782a9..c9e4a7c1 100644 --- a/Assets/Scripts/Devices/Ble/mobile/BleMobileInterface.cs +++ b/Assets/Scripts/Devices/Ble/mobile/BleMobileInterface.cs @@ -456,6 +456,8 @@ namespace Assets.Scripts.Ble public void Dispose() { + if (bleMobileThread == null) + return; bleMobileThread.ManagerInitialized -= BleMobileThread_ManagerInitialized; bleMobileThread.ManagerStatusChanged -= ManagerStatusChanged; bleMobileThread.ScanInfoReceived -= WatcherScanInfoReceived;