Skip to content

Commit

Permalink
fix: support forge server startup
Browse files Browse the repository at this point in the history
  • Loading branch information
2mal3 committed Jul 17, 2024
1 parent c6c9a65 commit 39e42d0
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/somnus/logic/start.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import asyncio

from pexpect import exceptions, pxssh
from asyncer import asyncify
from ping3 import ping
from wakeonlan import send_magic_packet
Expand Down Expand Up @@ -75,7 +74,13 @@ async def _start_mc_server(config: Config):
yield

log.debug("Waiting for MC server to start ...")
messages = ["Starting", "Loading libraries", "Environment", "Preparing level", ">"]
messages = [
["Starting", "running"],
["Loading libraries", "Loading"],
["Environment", "Preparing"],
["Preparing level", "Done"],
">"
]
for i, message in enumerate(messages):
ssh.expect(message)
yield
Expand Down

0 comments on commit 39e42d0

Please sign in to comment.