fix(Custom): pclose if continuous script end
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