mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-01-11 14:40:25 +01:00
[PR #1203] [MERGED] fix(bar): prevent komorebi connection from staling #1252
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/LGUG2Z/komorebi/pull/1203
Author: @alex-ds13
Created: 12/26/2024
Status: ✅ Merged
Merged: 12/26/2024
Merged by: @LGUG2Z
Base:
master← Head:fix(bar)/komorebi-connection-was-getting-stuck📝 Commits (1)
82b5776fix(bar): prevent komorebi connection from staling📊 Changes
1 file changed (+4 additions, -0 deletions)
View changed files
📝
komorebi-bar/src/main.rs(+4 -0)📄 Description
Sometimes the bar would randomly stop receiving notifications from komorebi and would stop updating the
Komorebiwidget. This feels to me that the reason is the same one that used to happen on theprocess_commandsfromkomorebiwhere the socket would get stuck reading an empty connection. This commit adds a read timeout to the socket to prevent that from happening and hopefully it should stop those situations where the bar would stop receiving notifications.There were some users reporting on Discord that the bar would sometime stop updating the workspaces widget and I have faced that as well! Hopefully this should fix that. I looked if there was an opened issue on github related to this but couldn't find any, so maybe it was just reported on Discord.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.