Fix lapse_ran: only set true after lapse succeeds

This commit is contained in:
earthonion
2026-02-07 19:38:28 -05:00
parent 82586bedbe
commit f123b60d5c
+2 -1
View File
@@ -96,7 +96,7 @@ const TCP_INFO = 32
const TCPS_ESTABLISHED = 4
const size_tcp_info = 0xec /* struct tcp_info */
var lapse_ran = true
var lapse_ran = false
// Create shorthand references
fn.register(42, 'pipe', ['bigint'], 'bigint')
@@ -2065,6 +2065,7 @@ export function lapse () {
cleanup()
lapse_ran = true
return true
} catch (e) {
log('Lapse error: ' + (e as Error).message)