fix /snes <snes_interface> if interface contains spaces (which it shouldn't, but meh)

This commit is contained in:
Fabian Dill 2020-05-31 14:55:37 +02:00
parent f918efb645
commit 117624d611
1 changed files with 2 additions and 1 deletions

View File

@ -819,7 +819,7 @@ async def connect(ctx: Context, address=None):
ctx.server_task = asyncio.create_task(server_loop(ctx, address))
from MultiServer import CommandProcessor
from MultiServer import CommandProcessor, mark_raw
class ClientCommandProcessor(CommandProcessor):
@ -831,6 +831,7 @@ class ClientCommandProcessor(CommandProcessor):
self.ctx.exit_event.set()
return True
@mark_raw
def _cmd_snes(self, snes_address: str = "") -> bool:
"""Connect to a snes. Optionally include network address of a snes to connect to, otherwise show available devices"""
self.ctx.snes_reconnect_address = None