diff --git a/Sources/CornucopiaStreams/Streams/BLEL2CAPInputStreamProxy.swift b/Sources/CornucopiaStreams/Streams/BLEL2CAPInputStreamProxy.swift index ff428b7..806bad3 100644 --- a/Sources/CornucopiaStreams/Streams/BLEL2CAPInputStreamProxy.swift +++ b/Sources/CornucopiaStreams/Streams/BLEL2CAPInputStreamProxy.swift @@ -21,10 +21,11 @@ final class BLEL2CAPInputStreamProxy: ProxyInputStream { super.init(proxying: inputStream) } -#if DEBUG deinit { + self.manager.cancelPeripheralConnection(self.peripheral) +#if DEBUG print("\(self) destroyed") - } #endif + } } #endif