Update quitProc for nim 1.6 deprecation warning.
This commit is contained in:
parent
2980bff63e
commit
0739bac11c
2 changed files with 3 additions and 3 deletions
2
Makefile
2
Makefile
|
|
@ -14,7 +14,7 @@ debugger: ${FILES}
|
||||||
nim --debugger:on --nimcache:.cache c ${FILES}
|
nim --debugger:on --nimcache:.cache c ${FILES}
|
||||||
|
|
||||||
release: ${FILES}
|
release: ${FILES}
|
||||||
nim -d:release --opt:speed --parallelBuild:0 --nimcache:.cache c ${FILES}
|
nim -d:release -d:nimDebugDlOpen --opt:speed --parallelBuild:0 --nimcache:.cache c ${FILES}
|
||||||
|
|
||||||
docs:
|
docs:
|
||||||
nim doc ${FILES}
|
nim doc ${FILES}
|
||||||
|
|
|
||||||
|
|
@ -31,11 +31,11 @@
|
||||||
import
|
import
|
||||||
db_postgres,
|
db_postgres,
|
||||||
json,
|
json,
|
||||||
math,
|
|
||||||
nativesockets,
|
nativesockets,
|
||||||
net,
|
net,
|
||||||
parseopt,
|
parseopt,
|
||||||
posix,
|
posix,
|
||||||
|
std/exitprocs,
|
||||||
strutils,
|
strutils,
|
||||||
strformat,
|
strformat,
|
||||||
tables,
|
tables,
|
||||||
|
|
@ -382,7 +382,7 @@ proc parse_cmdline: Config =
|
||||||
|
|
||||||
|
|
||||||
when isMainModule:
|
when isMainModule:
|
||||||
system.addQuitProc( resetAttributes )
|
addExitProc( resetAttributes )
|
||||||
conf = parse_cmdline()
|
conf = parse_cmdline()
|
||||||
if conf.debug: echo hl( $conf, fgYellow )
|
if conf.debug: echo hl( $conf, fgYellow )
|
||||||
serverloop( conf )
|
serverloop( conf )
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue