and kill batget when forcing hal mode.

SVN revision: 38874
This commit is contained in:
Carsten Haitzler 2009-02-01 03:29:22 +00:00
parent 6a7c68a45b
commit efc07de04f
1 changed files with 6 additions and 0 deletions

View File

@ -762,6 +762,12 @@ _battery_config_updated(void)
E_DBus_Connection *conn;
DBusPendingCall *call;
if (battery_config->batget_exe)
{
ecore_exe_terminate(battery_config->batget_exe);
ecore_exe_free(battery_config->batget_exe);
battery_config->batget_exe = NULL;
}
conn = e_dbus_bus_get(DBUS_BUS_SYSTEM);
if (conn)
battery_config->hal.have =