mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
fix: json thread safe
This commit is contained in:
@ -104,6 +104,7 @@ struct Ipc::ipc_response Ipc::recv(int fd) {
|
||||
}
|
||||
total += res;
|
||||
}
|
||||
std::lock_guard<std::mutex> lock(mutex_parser_);
|
||||
auto parsed = parser_.parse(&payload.front());
|
||||
return {data32[0], data32[1], parsed};
|
||||
}
|
||||
|
Reference in New Issue
Block a user