Skip to content

Move server_init_hook to Util::server_init

Some use cases for server_init_hook may require to subscribe to events from other devices in the same device server, this subscription requires DServerClass instance to be fully initialized.

Move the server_init_hook call from DServerClass constructor to Util::server_init in order to avoid DServerClass instance pointer null error.

Error when subscribing in server_init_hook:

image-2021-03-11-17-52-41-478

Details of the error chain: image-2021-03-11-17-54-33-554

Merge request reports

Loading