Skip to content

Commit

Permalink
service: Use connect reason from the failed service
Browse files Browse the repository at this point in the history
When a service fails to connect, use the connect reason when calling
autoconnect. Without this fix the next service to try after a failed
session initiated autconnect attempt will be stamped as a normal
autoconnected one and not be removed when the last session exits.
  • Loading branch information
pfl committed Mar 4, 2014
1 parent 90334bf commit ee485f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/service.c
Expand Up @@ -5015,7 +5015,7 @@ static void service_complete(struct connman_service *service)
reply_pending(service, EIO);

if (service->connect_reason != CONNMAN_SERVICE_CONNECT_REASON_USER)
__connman_service_auto_connect(CONNMAN_SERVICE_CONNECT_REASON_AUTO);
__connman_service_auto_connect(service->connect_reason);

g_get_current_time(&service->modified);
service_save(service);
Expand Down

0 comments on commit ee485f6

Please sign in to comment.