Skip to content

BadState on autoReconnect #620

@ygorrrteles

Description

@ygorrrteles

The package is trying to execute the .fire of the eventBus even after the closure has been executed, would it be possible to add a validation if the clientEventBus has already been closed and if it is different from null?

I/flutter (11479): ----------------FIREBASE CRASHLYTICS----------------
I/flutter (11479): Bad state: Cannot add new events after calling close
I/flutter (11479): #0      _BroadcastStreamController.add (dart:async/broadcast_stream_controller.dart:256:24)
I/flutter (11479): #1      EventBus.fire (package:event_bus/event_bus.dart:61:22)
I/flutter (11479): #2      MqttConnectionHandlerBase.autoReconnect (package:mqtt_client/src/connectionhandling/mqtt_client_mqtt_connection_handler_base.dart:160:23)
I/flutter (11479): <asynchronous suspension>
I/flutter (11479): ----------------------------------------------------
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions