Fix lapse_ran: only set true after lapse succeeds
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user