mirror of
https://github.com/polybar/polybar.git
synced 2026-03-12 19:25:26 +00:00
Enable module in start funcion (#2538)
Before it was enabled by default. That means if the constructor fails, the destructor will complain that the module was not stopped before deconstructing. We can't just call stop if module creation fails because the module is only partially initialized.
This commit is contained in:
@ -68,6 +68,7 @@ namespace modules {
|
||||
* Start module and run first defined hook if configured to
|
||||
*/
|
||||
void ipc_module::start() {
|
||||
this->module::start();
|
||||
m_mainthread = thread([&] {
|
||||
m_log.trace("%s: Thread id = %i", this->name(), concurrency_util::thread_id(this_thread::get_id()));
|
||||
update();
|
||||
|
||||
Reference in New Issue
Block a user