Skip to content

Commit

Permalink
Fires the ConnectionInterrupted when user closed the connection
Browse files Browse the repository at this point in the history
  • Loading branch information
Felix Krischak committed Apr 27, 2021
1 parent 9d4ec4d commit 03eac56
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Source/Plugin.BLE.Android/GattCallback.cs
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ public override void OnConnectionStateChange(BluetoothGatt gatt, GattStatus stat
//we already hadled device error so no need th raise disconnect event(happens when device not in range)
_adapter.HandleDisconnectedDevice(true, _device);
}
ConnectionInterrupted?.Invoke(this, EventArgs.Empty);
break;
}

Expand Down

0 comments on commit 03eac56

Please sign in to comment.