From 50d96d65f7b6101215fe36cd2da39d993c78f894 Mon Sep 17 00:00:00 2001 From: jan iversen Date: Sat, 9 Sep 2023 09:49:54 +0200 Subject: [PATCH] simulator future problem. (#1771) --- pymodbus/server/simulator/http_server.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pymodbus/server/simulator/http_server.py b/pymodbus/server/simulator/http_server.py index e45efc30f..d1729b2ad 100644 --- a/pymodbus/server/simulator/http_server.py +++ b/pymodbus/server/simulator/http_server.py @@ -254,8 +254,7 @@ async def run_forever(self, only_start=False): Log.info("HTTP server started on ({}:{})", self.http_host, self.http_port) if only_start: return - while True: - await self.serving() + await self.serving async def stop(self): """Stop modbus and http servers."""