diff --git a/aiocraft/client.py b/aiocraft/client.py index 834a87b..16cf202 100644 --- a/aiocraft/client.py +++ b/aiocraft/client.py @@ -200,7 +200,8 @@ class MinecraftClient(CallbacksHolder, Runnable): break if self._processing: # if client was stopped exit immediately await asyncio.sleep(self.options.reconnect_delay) - await self.stop(force=True) + if self._processing: + await self.stop(force=True) async def _handshake(self) -> bool: # TODO make this fancier! poll for version and status first await self.dispatcher.write(