mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-13 18:51:29 +00:00
[Crash] Fix rarer exception crash issue in PlayerEventLogs::ProcessBatchQueue (#4835)
This commit is contained in:
parent
9be2485330
commit
60a2dd8616
@ -181,9 +181,17 @@ void PlayerEventLogs::ProcessBatchQueue()
|
||||
|
||||
// Helper to deserialize event data
|
||||
auto Deserialize = [](const std::string &data, auto &out) {
|
||||
if (!Strings::IsValidJson(data)) {
|
||||
return;
|
||||
}
|
||||
|
||||
// cpp exceptions are terrible, don't ever use them
|
||||
try {
|
||||
std::stringstream ss(data);
|
||||
cereal::JSONInputArchive ar(ss);
|
||||
out.serialize(ar);
|
||||
}
|
||||
catch (const std::exception &e) {}
|
||||
};
|
||||
|
||||
// Helper to assign ETL table ID
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user