Skip to content

Commit c850a49

Browse files
author
pmmiranda
committed
Immediate shutdown workaround
1 parent f32c045 commit c850a49

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

nimbus/nimbus.nim

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import
1212
consensus/consensus_layer,
1313
common/utils,
1414
conf,
15-
confutils/[cli_parser, toml/defs],
15+
confutils/cli_parser,
1616
beacon_chain/conf,
1717
../execution_chain/config
1818

@@ -115,6 +115,10 @@ proc controlCHandler() {.noconv.} =
115115

116116
notice "\tCtrl+C pressed. Shutting down services ..."
117117

118+
# WA to shutdown client(exceptions thrown)
119+
# issues related with nat.nim shutdown procedure (nim-eth
120+
quit 0
121+
118122
shutdownExecution()
119123
shutdownConsensus()
120124

@@ -177,10 +181,6 @@ proc run*(nimbus: var Nimbus) =
177181
# wait for shutdown
178182
nimbus.monitorServices()
179183

180-
# WA to shutdown (exceptions thrown)
181-
# current shutdown procedure hangs on nat.nim from nim-eth
182-
quit 0
183-
184184
# ------
185185
when isMainModule:
186186
notice "Starting Nimbus"

0 commit comments

Comments
 (0)