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

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

     停止
     */
    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
