From 8492474f6db7af64895297bfc3550b83afc9c57a Mon Sep 17 00:00:00 2001 From: RadKesvat <> Date: Mon, 10 Jul 2023 00:02:52 +0430 Subject: [PATCH] fix timing issue --- src/globals.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/globals.nim b/src/globals.nim index b933c98..8a2f726 100644 --- a/src/globals.nim +++ b/src/globals.nim @@ -1,7 +1,7 @@ import dns_resolve, hashes, asyncdispatch, print, parseopt, strutils, random, net, strutils, osproc, strformat import std/sha1 -const version = "11.4" +const version = "11.5" type RunMode*{.pure.} = enum tunnel, server @@ -172,7 +172,7 @@ proc init*() = if exit: quit(-1) if terminate_secs != 0: - sleepAsync(terminate_secs).addCallback( + sleepAsync(terminate_secs*1000).addCallback( proc() = echo "Exiting due to termination timeout. (--terminate)" quit(0)