Skip to content

Commit

Permalink
chore: support longer shutdown times
Browse files Browse the repository at this point in the history
  • Loading branch information
2mal3 committed Jul 18, 2024
1 parent 8bcf263 commit ef5afce
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/somnus/logic/stop.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ async def _stop_mc_server(ssh: pxssh.pxssh, config: Config):

log.debug("Sending stop command ...")
ssh.sendline("stop")
messages = ["overworld", "the_end", "nether"]
for message in messages:
ssh.expect(message)
yield
ssh.prompt()
yield

Expand Down

0 comments on commit ef5afce

Please sign in to comment.