return FALSE;
}
-static void test_and_disconnect(struct connman_session *session)
+static void deselect_and_disconnect(struct connman_session *session)
{
struct session_info *info = session->info;
struct connman_service *service;
struct session_info *info = session->info;
if (info->entry != NULL && info->entry != entry)
- test_and_disconnect(session);
+ deselect_and_disconnect(session);
}
static void select_online_service(struct connman_session *session,
* which is in free ride mode.
*/
- test_and_disconnect(session);
+ deselect_and_disconnect(session);
return;
}
* This service is not part of this
* session anymore.
*/
- test_and_disconnect(session);
+ deselect_and_disconnect(session);
}
}
break;
case CONNMAN_SESSION_TRIGGER_DISCONNECT:
- test_and_disconnect(session);
+ deselect_and_disconnect(session);
break;
case CONNMAN_SESSION_TRIGGER_PERIODIC:
* Therefore we want to restart the algorithm. Before we
* can do that we have to cleanup a potientional old entry.
*/
- test_and_disconnect(session);
+ deselect_and_disconnect(session);
info->reason = CONNMAN_SESSION_REASON_CONNECT; /* restore value */
DBG("Retry to find a matching session");
case CONNMAN_SESSION_TRIGGER_ECALL:
if (info->online == FALSE && info->entry != NULL &&
info->entry->service != NULL) {
- test_and_disconnect(session);
+ deselect_and_disconnect(session);
}
break;
g_dbus_unregister_interface(connection, session->session_path,
CONNMAN_SESSION_INTERFACE);
- test_and_disconnect(session);
+ deselect_and_disconnect(session);
g_hash_table_remove(session_hash, session->session_path);