This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch master
in repository enlightenment.
View the commit online.
commit 3585f2abbeeb11573fb38b4032494a2198d5a98d
Author: Carsten Haitzler <[email protected]>
AuthorDate: Sun May 17 23:44:24 2026 +0100
nm module - handle notify being called after shutdown
---
src/modules/networkmanager/e_mod_main.c | 7 +++++++
src/modules/networkmanager/e_mod_main.h | 1 +
2 files changed, 8 insertions(+)
diff --git a/src/modules/networkmanager/e_mod_main.c b/src/modules/networkmanager/e_mod_main.c
index 21074cfd8..867471a42 100644
--- a/src/modules/networkmanager/e_mod_main.c
+++ b/src/modules/networkmanager/e_mod_main.c
@@ -1328,6 +1328,7 @@ _enm_traffic_worker_notify(void *data, Ecore_Thread *thread EINA_UNUSED,
if (!have) return;
+ if (!ctxt) return;
/* First sample seeds the counters — no rate yet */
if (ctxt->prev_rx == 0 && ctxt->prev_tx == 0)
{
@@ -1405,6 +1406,7 @@ _enm_traffic_timer_start(E_NM_Module_Context *ctxt)
w = E_NEW(Enm_Traffic_Worker, 1);
w->ctxt = ctxt;
w->iface = strdup(iface);
+ ctxt->worker = w;
eina_lock_new(&w->lock);
ctxt->traffic_thread =
ecore_thread_feedback_run(_enm_traffic_worker_heavy,
@@ -1687,6 +1689,11 @@ e_modapi_shutdown(E_Module *m)
ctxt = m->data;
if (!ctxt) return 0;
+ if (ctxt->worker)
+ {
+ Enm_Traffic_Worker *w = ctxt->worker;
+ w->ctxt = NULL;
+ }
e_nm_system_shutdown();
e_nm_module_callbacks_set(NULL);
e_nm_agent_callbacks_set(NULL, NULL);
diff --git a/src/modules/networkmanager/e_mod_main.h b/src/modules/networkmanager/e_mod_main.h
index 2367e0f2e..1a6a54d45 100644
--- a/src/modules/networkmanager/e_mod_main.h
+++ b/src/modules/networkmanager/e_mod_main.h
@@ -52,6 +52,7 @@ struct E_NM_Module_Context
Ecore_Thread *traffic_thread;
char *traffic_iface; /* strdup of iface thread is reading */
Ecore_Event_Handler *powersave_handler;
+ void *worker;
unsigned long long prev_rx;
unsigned long long prev_tx;
int rx_level; /* 0=idle, 1=low, 2=medium, 3=high */
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.