geoph9/hass-gshell-extension

System unresponsive after toggling item

Closed this issue · 2 comments

After I click "Toggle XYZ", GNOME is frozen for a short moment (possibly until the request is completed?). See video below (I was constantly moving the mouse)

VID_20210822_175839_LS.mp4

Hi and thank you for creating this issue!

I have also noticed this issue happening when the server takes too long to respond. The problem occurs when we use the SoupSession instance in order to send the message/request to the server (see here). The whole gnome-shell is blocked until we get a response.

A quick fix would be to reduce the timeout, but that is not a real solution. I would have to further read the documentation on Soup's session management in order to solve this. I will try to do it in the near future (unless someone else solves it first!).

geoph9 commented

Should be fixed by #62 . Please re-open if the issue persists.