onTransportError method

  1. @override
void onTransportError()
override

Implementation

@override
void onTransportError() {
  clearTimeout(B);
  clearTimeout(D);
  clearTimeout(M);

  if (state != TransactionState.ACCEPTED) {
    logger.debug('transport error occurred, deleting transaction $id');
    _eventHandlers.emit(EventOnTransportError());
  }

  stateChanged(TransactionState.TERMINATED);
  ua!.destroyTransaction(this);
}