1
0
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:
Brenden Matthews 2015-11-16 10:12:41 -08:00
commit ebaeaf3b89

View File

@ -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!
}