diff --git a/sanic/sanic.py b/sanic/sanic.py index cc362d2d..f891a761 100644 --- a/sanic/sanic.py +++ b/sanic/sanic.py @@ -390,6 +390,11 @@ class Sanic: """ server_settings['reuse_port'] = True + if server_settings['loop'] is not None: + log.warn("Passing the loop is not supported with multiple" + " workers. The loop paramater has been set to None.") + server_settings['loop'] = None + # Create a stop event to be triggered by a signal if stop_event is None: stop_event = Event()