Skip to content
This repository has been archived by the owner on Oct 27, 2022. It is now read-only.

Show the error in menu and status window #86

Merged
merged 3 commits into from
Jun 17, 2021

Conversation

guillaumerose
Copy link
Contributor

  • Fetch the status every 5s
  • Poll it since the beginning, remove the sleep(6s) which also blocked the UI
  • Don't open an error dialog when status fails but show the error in the menu and status window.

If 2 calls are made at the same time, one call can override the
connection used by the other.
Instead show the error in the menu and in the status window.
It avoids to lock the tray for 6s at startup. The daemon status is
"Unknown" until the first status is shown.
@@ -103,7 +95,8 @@ private static string getSocketResponse(string cmd)
{
try
{
Initialize();
Socket daemonSocket = new Socket(AddressFamily.Unix, SocketType.Stream, ProtocolType.Unspecified);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍🏽

Copy link
Member

@anjannath anjannath left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, LGTM 👍🏽

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants