Search code examples
androidgoogle-play-serviceschromecast

GmsClient "calling connect() while still connected" when suspended


The GoogleApiClient logs the following error whenever the connection is suspended (i.e., whenever the onConnectionSuspended() callback is invoked):

GmsClient E Calling connect() while still connected, missing disconnect().

It appears that the client is automatically invoking connect() or reconnect() in response to the possibly transient error. If the error doesn't resolve within 10 seconds or so, the onConnectedFailed() callback is invoked.

Is this error message just a false positive, or does it indicate an actual problem with my usage of the GMS APIs? I'm using the Cast API, if that matters.


Solution

  • That message is not harmful. Are you seeing any side effects?