forked from p15670423/monkey
Island: Wire up event handlers before starting the island server
_start_island_server() blocks, so event handlers need to be wired/subscribed before the server starts.
This commit is contained in:
parent
8b49554cb5
commit
0e112cc31a
|
@ -58,11 +58,11 @@ def run_monkey_island():
|
|||
|
||||
_send_analytics(deployment, version)
|
||||
container = _initialize_di_container(ip_addresses, version, config_options.data_dir)
|
||||
setup_island_event_handlers(container)
|
||||
|
||||
_initialize_mongodb_connection(config_options.start_mongodb, config_options.data_dir)
|
||||
_start_island_server(ip_addresses, island_args.setup_only, config_options, container)
|
||||
|
||||
setup_island_event_handlers(container)
|
||||
|
||||
|
||||
def _extract_config(island_args: IslandCmdArgs) -> IslandConfigOptions:
|
||||
|
|
Loading…
Reference in New Issue