Skip to content

Commit 8085cfc

Browse files
committed
Fix small bug on the simulaqron "stop" command
1 parent ac5c0a7 commit 8085cfc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

simulaqron/simulaqron.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ def stop(name: str):
146146
"""Stops a network."""
147147
assert name is not None
148148
pidfile = PID_FOLDER / f"simulaqron_network_{name}.pid"
149-
if pidfile.exists():
149+
if not pidfile.exists():
150150
logging.warning("Network with name %s is not running", name)
151151
return
152152
d = RunningSimulaQronDaemon(pidfile=pidfile)

0 commit comments

Comments
 (0)