session: Remove unnecessary deselect_service
authorDaniel Wagner <daniel.wagner@bmw-carit.de>
Wed, 21 Sep 2011 08:35:25 +0000 (10:35 +0200)
committerDaniel Wagner <daniel.wagner@bmw-carit.de>
Thu, 22 Sep 2011 16:33:40 +0000 (18:33 +0200)
Because in session_changed() we take care of this now.

src/session.c

index f798056..0930569 100644 (file)
@@ -834,15 +834,8 @@ static void select_online_service(struct session_info *info,
 static void select_offline_service(struct session_info *info,
                                        struct service_entry *entry)
 {
-       if (explicit_connect(info->reason) == FALSE) {
-               /* Don't select this service. It is not online and we
-                * don't call connect on it. This happends for example
-                * when the system is idle and we create a new session
-                * which is in free ride mode.
-                */
-               deselect_service(info);
+       if (explicit_connect(info->reason) == FALSE)
                return;
-       }
 
        info->online = FALSE;