mirror of
https://github.com/rad4day/Waybar.git
synced 2025-07-20 01:42:38 +02:00
fix(Custom): pclose if continuous script end
This commit is contained in:
@@ -46,6 +46,7 @@ void waybar::modules::Custom::continuousWorker()
|
|||||||
char* buff = nullptr;
|
char* buff = nullptr;
|
||||||
size_t len = 0;
|
size_t len = 0;
|
||||||
if (getline(&buff, &len, fp) == -1) {
|
if (getline(&buff, &len, fp) == -1) {
|
||||||
|
pclose(fp);
|
||||||
thread_.stop();
|
thread_.stop();
|
||||||
output_ = { 1, "" };
|
output_ = { 1, "" };
|
||||||
dp.emit();
|
dp.emit();
|
||||||
|
Reference in New Issue
Block a user