Skip to content

Commit efc294c

Browse files
authored
server: fix crash from adaptive p (#1304)
Co-authored-by: firecoperana <firecoperana>
1 parent 89b1e2b commit efc294c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

common/sampling.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,9 @@ void common_sampler_reset(common_sampler * ctx) {
143143
}
144144

145145
void common_sampler_review(common_sampler * ctx) {
146+
if (!ctx->adapt_p_ctx) {
147+
return;
148+
}
146149
const bool record = ctx->record_samplers;
147150
const bool rewind = ctx->rewind_samplers;
148151

0 commit comments

Comments
 (0)