killPendingConnection method

void killPendingConnection()

Implementation

void killPendingConnection() {
  _connectTimeoutTimer?.cancel();
  _connectTimeoutTimer = null;
  _stateSubscription?.cancel();
  _stateSubscription = null;
  if (_connectCompleter != null) {
    if (!(_connectCompleter!.isCompleted)) {
      return _connectCompleter!.completeError(
        Exception('BLE pending connection killed'),
      );
    }
  }
}