mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
fix(Custom): pclose if continuous script end
This commit is contained in:
parent
00959c7d65
commit
0e8b3f71b8
@ -46,6 +46,7 @@ void waybar::modules::Custom::continuousWorker()
|
||||
char* buff = nullptr;
|
||||
size_t len = 0;
|
||||
if (getline(&buff, &len, fp) == -1) {
|
||||
pclose(fp);
|
||||
thread_.stop();
|
||||
output_ = { 1, "" };
|
||||
dp.emit();
|
||||
|
Loading…
Reference in New Issue
Block a user