abobija / esp-smartconfig-dart

EspTouch and EspTouchV2 implementations of SmartConfig provisioning protocols. Plain Dart. All platforms.
https://pub.dev/packages/esp_smartconfig
MIT License
46 stars 11 forks source link

add data only if stream is still open #9

Closed innomatica closed 1 year ago

innomatica commented 1 year ago

From time to time, I get the following exception when the device are connected to the network:

Unhandled Exception: Bad state: Cannot add new events after calling close

This PR solves it.

abobija commented 1 year ago

Thanks for the contribution to this library!