Merge pull request #20 from solero/fix-single-client-mode

Fix `client_type` assignment when running with --single-client-mode
This commit is contained in:
Ben 2020-05-04 02:38:35 +01:00 committed by GitHub
commit b709b5b583
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,7 +14,7 @@ async def handle_version_check(p, version: VersionChkConverter):
elif p.server.config.vanilla_version == version:
p.client_type = ClientType.Vanilla
elif p.server.config.default_version == version:
p.client_type = p.server.config.default_version
p.client_type = p.server.config.default_client
if p.client_type is None:
await p.send_xml({'body': {'action': 'apiKO', 'r': '0'}})