Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion unity-project/Assets/Moulin/DDP/account/DdpAccount.cs
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,13 @@ public IEnumerator ResumeSession(string token) {

public IEnumerator Logout() {
MethodCall logoutCall = connection.Call("logout");
yield return logoutCall.WaitForResult();

if (logoutCall.error != null) {
throw new InvalidOperationException("Logout Error! Try Again!");
}

HandleLogoutResult(logoutCall);
yield return logoutCall.WaitForResult();
}

}
Expand Down