Lino
Lino

Reputation: 6160

Leave a self-joined session

I understood by reading the source code that the method leaveSession of the BusAttachment can't be called on a self-joined session. So, how to leave a self-joined session?

Upvotes: 1

Views: 76

Answers (2)

Danilo Filgueira MD
Danilo Filgueira MD

Reputation: 11

I was also having a problem when using the leaveSession method. The error I get from the bus is:

ER_ALLJOYN_LEAVESESSION_REPLY_NO_SESSION

However, when I use the leaveHostedSession, the host leaves the session with success.

Mind that the session lost event will not be fired at the clients if more than one client remains in the session.

Upvotes: 0

John Sampson
John Sampson

Reputation: 574

Does the call fail? This may be an issue where the documentation is inconsistent with the code. The Java bindings merely call the C++ code, and the C++ code doesn't appear to have a problem leaving self-joined sessions.

Upvotes: 1

Related Questions