Skip to content

Commit

Permalink
fix timing issue
Browse files Browse the repository at this point in the history
  • Loading branch information
RadKesvat committed Jul 9, 2023
1 parent f89ec45 commit 8492474
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/globals.nim
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 8492474

Please sign in to comment.