Skip to content

Commit

Permalink
Bugfix in preRun
Browse files Browse the repository at this point in the history
  • Loading branch information
mfiers committed Apr 5, 2011
1 parent 8251ba1 commit 7083dd8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/python/moa/plugin/status.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,10 +166,10 @@ def kill(data):
_setStatus(data, 'interrupted')


def preRun(data):
def preRun(data):
status = _getStatus(data)
if status == 'running':
moa.ui.exitError("Already running (pid %d)" % otherPid)
moa.ui.exitError("Already running")
sys.exit(0)

_setPid(data, os.getpid())
Expand Down

0 comments on commit 7083dd8

Please sign in to comment.