Skip to content

Commit a23e152

Browse files
committed
plugins: rtc: follow-up to bc8118d, stop timer at shutdown
Introduced to work-around systems with broken RTCs, it also introduced a dormant bug in Finit, triggered at shutdown on some systems. The call to dlclose() removed the memory to the rtc_timer which libuev later then referenced. Fixes #429 Signed-off-by: Joachim Wiberg <[email protected]>
1 parent 9210f28 commit a23e152

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

plugins/rtc.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,7 @@ PLUGIN_INIT(plugin_init)
338338

339339
PLUGIN_EXIT(plugin_exit)
340340
{
341+
uev_timer_stop(&rtc_timer);
341342
plugin_unregister(&plugin);
342343
}
343344

0 commit comments

Comments
 (0)