[PATCH] service: Fix service disconnection when using the same index

2014-08-05 Thread Patrik Flykt
When a service is to be connected, other service(s) using the same interface will be disconnected. Fix the already connected or connecting situation by ignoring the service in question when seen in the list. Simplify the index detection and signal a timeout when disconnect needs to happen first in

RE: [PATCH] service: Fix service disconnection when using the same index

2014-08-05 Thread Chengyi Zhao
Hi Patrik, > From: patrik.fl...@linux.intel.com > To: connman@connman.net > Subject: [PATCH] service: Fix service disconnection when using the same index > Date: Tue, 5 Aug 2014 13:12:56 +0300 > > When a service is to be connected, other service(s) using the same > interface

Re: [PATCH] service: Fix service disconnection when using the same index

2014-08-05 Thread Patrik Flykt
Hi, On Tue, 2014-08-05 at 10:42 +, Chengyi Zhao wrote: > Hi Patrik, > > > From: patrik.fl...@linux.intel.com > > To: connman@connman.net > > Subject: [PATCH] service: Fix service disconnection when using the same > > index > > Date: Tue, 5 Aug

RE: [PATCH] service: Fix service disconnection when using the same index

2014-08-05 Thread Chengyi Zhao
Hi, > > > > src/service.c | 11 +++ > > 1 file changed, 11 insertions(+) > > > > diff --git a/src/service.c b/src/service.c > > index 9406bc3..9740738 100644 > > --- a/src/service.c > > +++ b/src/service.c > > @@ -3957,6 +3957,16 @@ static DBusMessage *connect_service(DBusConnection >

Re: [PATCH] service: Fix service disconnection when using the same index

2014-08-06 Thread Patrik Flykt
On Tue, 2014-08-05 at 13:12 +0300, Patrik Flykt wrote: > When a service is to be connected, other service(s) using the same > interface will be disconnected. Fix the already connected or connecting > situation by ignoring the service in question when seen in the list. > > Simplify the index detect