      停止
      */
     public func stop() {
+        if !peripherals.isEmpty {
+            for peripheral in peripherals {
+                centralManager.cancelPeripheralConnection(peripheral)
+            }
+            peripherals.removeAll()
+        }
         if let central = self.centralManager {
             central.stopScan()
             self.centralManager = nil

            }
            peripheral.removeAllServices()
            self.peripheralManager = nil
        }
        if !peripherals.isEmpty {
            peripherals.removeAll()
        }
    }
    

            deviceInfo.advertisementData = advertisementData
            deviceInfo.RSSI = RSSI
            
            if let _ = delegate.nearByDevices?(deviceInfo){}
            
        }
        if let setting = self.streetPassSettings {
