Skip to content

Conversation

gbakeman
Copy link
Contributor

Closes #63

A few issues have been brought up:

  • The WinNUT UI is left in an inconsistent state when the connection to a NUT server is unexpectedly lost.
  • The streamInUse latch variable was left locked when the connection was broken, resulting in future queries failing.

Fix inconsistent UI when a connection is lost (not manually disconnected)
When reconnecting after a lost connection, somehow the streamInUse lockout is left on at some point. Improving error handling to diagnose this.
The streamInUse latch was not being reset when an exception was encountered writing to the stream. This is now handled in a try-catch-finally block.
@gbakeman gbakeman added the bug Something isn't working label Nov 28, 2022
@gbakeman gbakeman added this to the 2.2 Stable Release milestone Nov 28, 2022
@gbakeman gbakeman linked an issue Nov 28, 2022 that may be closed by this pull request
@gbakeman gbakeman merged commit 668f13b into Dev-2.2 Nov 30, 2022
@gbakeman gbakeman deleted the 63-conn_handling branch November 30, 2022 02:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Does not re-establish connection, but says it has...
1 participant