diff --git a/pymodbus/repl/server/main.py b/pymodbus/repl/server/main.py index 1c72e9b0a..bb01e64d7 100644 --- a/pymodbus/repl/server/main.py +++ b/pymodbus/repl/server/main.py @@ -198,10 +198,10 @@ def run( **web_app_config, **modbus_config, ) + loop.run_until_complete(app.run_async(repl)) if repl: loop.run_until_complete(run_repl(app)) else: - loop.run_until_complete(app.run_async(repl)) loop.run_forever()