Skip to content

Commit b4d0f67

Browse files
committed
stop
1 parent adf0b3c commit b4d0f67

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

chainCtr

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -262,22 +262,22 @@ def handle_init(argv):
262262
def handle_stop(argv):
263263
path = '/var/local/peersafe/chainsqld'
264264
if len(argv) > 2:
265+
stop_local = False
266+
265267
for idx in range(2, len(argv)):
266268
if argv[idx] == '--fake':
267269
for i in range(4):
268270
rpath = '%s/%d' %(path, i)
269271
os.chdir(rpath)
270272
unit.stop_chainsqld()
271-
else:
272-
stop_local = False
273-
for idx in range(2, len(argv)):
274273
if argv[idx] == '--local':
275274
stop_local = True
276-
if stop_local == True:
277-
os.chdir(path)
278-
unit.stop_chainsqld()
279-
else:
280-
join.stop()
275+
276+
if stop_local == True:
277+
os.chdir(path)
278+
unit.stop_chainsqld()
279+
else:
280+
join.stop()
281281

282282
def handle_commands(argv):
283283
cmd = argv[1]

0 commit comments

Comments
 (0)