mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-13 14:41:28 +00:00
[Crash] Websocket Crash fix race when fetching log categories (#2456)
* [Crash] Websocket crash fix race * Refine check
This commit is contained in:
parent
554b41d424
commit
c1626da40d
@ -829,7 +829,7 @@ Json::Value ApiGetZoneAttributes(EQ::Net::WebsocketServerConnection *connection,
|
|||||||
|
|
||||||
Json::Value ApiGetLogsysCategories(EQ::Net::WebsocketServerConnection *connection, Json::Value params)
|
Json::Value ApiGetLogsysCategories(EQ::Net::WebsocketServerConnection *connection, Json::Value params)
|
||||||
{
|
{
|
||||||
if (zone->GetZoneID() == 0) {
|
if (!zone || (zone && zone->GetZoneID() == 0)) {
|
||||||
throw EQ::Net::WebsocketException("Zone must be loaded to invoke this call");
|
throw EQ::Net::WebsocketException("Zone must be loaded to invoke this call");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user