Skip to content

Commit 2b91a79

Browse files
Mariusz-Trelavogel76
authored andcommitted
Launch the webserver in the beekeeper only when an initialization of plugins passed
1 parent 909b0dd commit 2b91a79

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

programs/beekeeper/beekeeper/beekeeper_app.cpp

+6-3
Original file line numberDiff line numberDiff line change
@@ -188,11 +188,14 @@ void beekeeper_app::start()
188188
instance->save_connection_details( collector );
189189
} );
190190

191-
_webserver_plugin.start_webserver();
192-
193191
app.startup();
194192

195-
app.notify_status( "beekeeper is ready" );
193+
//Launch webserver only when all plugins are initialized at startup.
194+
if( !app.is_interrupt_request() )
195+
{
196+
_webserver_plugin.start_webserver();
197+
app.notify_status( "beekeeper is ready" );
198+
}
196199

197200
ilog("beekeeper is waiting");
198201
app.wait( true/*log*/ );

0 commit comments

Comments
 (0)