mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-10-29 16:07:14 +00:00
fix(dashboard): capture worlds route holds the cached capture by shared pointer
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -691,7 +691,7 @@ namespace CaptureReplay {
|
|||||||
[](HTTPReply& reply, const HTTPContext& context) {
|
[](HTTPReply& reply, const HTTPContext& context) {
|
||||||
const auto session = FindSession(context, reply);
|
const auto session = FindSession(context, reply);
|
||||||
if (!session) return;
|
if (!session) return;
|
||||||
const auto* cached = Load(*session, reply);
|
const auto cached = Load(*session, reply);
|
||||||
if (!cached) return;
|
if (!cached) return;
|
||||||
JsonSuccess(reply, { {"worlds", WorldsJson(*cached)} });
|
JsonSuccess(reply, { {"worlds", WorldsJson(*cached)} });
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user