iobroker-community-adapters / ioBroker.unifi

ioBroker.unifi is an ioBroker adapter for your UniFi network devices.
MIT License
73 stars 24 forks source link

Continue with update cycle after connection timeout #712

Closed ar7bd closed 10 months ago

ar7bd commented 10 months ago
jens-maus commented 10 months ago

Shouldn't this better be handeled in the node-unifi project?

ar7bd commented 10 months ago

Maybe. I'm not familiar how responsibilities are designed in these projects. Though a timeout is some kind of an error. node-unifi would either have to retry indefinitely or throw an error at some point. At that point we would again be in a situation, where the caller would have to deal with that error.

Feel free to reject this, if you prefer a different solution. This just seemed to work for me and I thought I could share that.

GermanBluefox commented 10 months ago

LGTM