From 040312a6524a9db09aa4860ac4ff5ad671f73fe3 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Sat, 18 Jul 2009 03:44:17 +0200 Subject: [PATCH] Fix limitation with simultaneous connects from different technologies --- src/service.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/service.c b/src/service.c index 30ce1eb..c78afdb 100644 --- a/src/service.c +++ b/src/service.c @@ -588,9 +588,10 @@ static DBusMessage *connect_service(DBusConnection *conn, iter = g_sequence_get_begin_iter(service_list); while (g_sequence_iter_is_end(iter) == FALSE) { - struct connman_service *service = g_sequence_get(iter); + struct connman_service *temp = g_sequence_get(iter); - if (is_connecting(service) == TRUE) + if (service->type == temp->type && + is_connecting(temp) == TRUE) return __connman_error_in_progress(msg); iter = g_sequence_iter_next(iter); -- 2.7.4