server: fix crash from adaptive p (#1304)

Co-authored-by: firecoperana <firecoperana>
This commit is contained in:
firecoperana 2026-02-23 00:25:52 -06:00 committed by GitHub
parent 89b1e2b518
commit efc294cc39
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

View File

@ -143,6 +143,9 @@ void common_sampler_reset(common_sampler * ctx) {
}
void common_sampler_review(common_sampler * ctx) {
if (!ctx->adapt_p_ctx) {
return;
}
const bool record = ctx->record_samplers;
const bool rewind = ctx->rewind_samplers;