mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-11-17 18:45:10 +00:00
Merge pull request #163 from bldewolf/mpd-threading
lock mpd result before modifying it
This commit is contained in:
commit
ebaeaf3b89
@ -298,6 +298,7 @@ if (b) a=b; else a="";
|
||||
conn = 0;
|
||||
} */
|
||||
} while (0);
|
||||
std::lock_guard<std::mutex> lock(Base::result_mutex);
|
||||
result = mpd_info; // don't forget to save results!
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user