Fix interface removal on script exit.

This commit is contained in:
Luiz Augusto von Dentz 2007-09-28 13:35:08 +00:00
parent da7741d542
commit f3314791b1

View File

@ -89,11 +89,8 @@ static void script_exited(GPid pid, gint status, gpointer data)
else
debug("%d was killed by signal %d", pid, WTERMSIG(status));
g_spawn_close_pid(pid);
pid = 0;
g_free(bnep->devname);
pids = g_slist_remove(pids, bnep);
g_spawn_close_pid(bnep->pid);
bnep->pid = 0;
}
uint16_t bnep_service_id(const char *svc)