Skip to content

Commit 90ef408

Browse files
Explorer09BenBE
authored andcommitted
Prevent assertion error in Machine_scanTables()
... when the function is called in quick succession (monotonic time < 1 millisecond).
1 parent f5d1a97 commit 90ef408

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Machine.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,9 @@ void Machine_scanTables(Machine* this) {
107107
this->monotonicMs = 1;
108108
firstScanDone = true;
109109
}
110-
assert(this->monotonicMs > this->prevMonotonicMs);
110+
if (this->monotonicMs <= this->prevMonotonicMs) {
111+
return;
112+
}
111113

112114
this->maxUserId = 0;
113115
Row_resetFieldWidths();

0 commit comments

Comments
 (0)