Skip to content

Commit aaf4e77

Browse files
committed
fix: reset writeQIsRunning flag when peripheral disconnects
resolves randdusing#690
1 parent 7c12435 commit aaf4e77

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/ios/BluetoothLePlugin.m

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2256,6 +2256,9 @@ - (void)centralManager:(CBCentralManager *)central didDisconnectPeripheral:(CBPe
22562256
if (callback == nil) {
22572257
return;
22582258
}
2259+
2260+
//Reset writeQIsRunning flag since we have no way of knowing if one was interupted
2261+
writeQIsRunning = false;
22592262

22602263
//Return disconnected connection information
22612264
NSMutableDictionary* returnObj = [NSMutableDictionary dictionary];

0 commit comments

Comments
 (0)