{"action":"created","issue":{"url":"https://api.github.com/repos/playgameservices/play-games-plugin-for-unity/issues/379","labels_url":"https://api.github.com/repos/playgameservices/play-games-plugin-for-unity/issues/379/labels{/name}","comments_url":"https://api.github.com/repos/playgameservices/play-games-plugin-for-unity/issues/379/comments","events_url":"https://api.github.com/repos/playgameservices/play-games-plugin-for-unity/issues/379/events","html_url":"https://github.com/playgameservices/play-games-plugin-for-unity/issues/379","id":55582256,"number":379,"title":"OnPeersDisconnected(string[] participantIds) is not working properly","user":{"login":"Bulbul108","id":6562739,"avatar_url":"https://avatars.githubusercontent.com/u/6562739?v=3","gravatar_id":"","url":"https://api.github.com/users/Bulbul108","html_url":"https://github.com/Bulbul108","followers_url":"https://api.github.com/users/Bulbul108/followers","following_url":"https://api.github.com/users/Bulbul108/following{/other_user}","gists_url":"https://api.github.com/users/Bulbul108/gists{/gist_id}","starred_url":"https://api.github.com/users/Bulbul108/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bulbul108/subscriptions","organizations_url":"https://api.github.com/users/Bulbul108/orgs","repos_url":"https://api.github.com/users/Bulbul108/repos","events_url":"https://api.github.com/users/Bulbul108/events{/privacy}","received_events_url":"https://api.github.com/users/Bulbul108/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-01-27T06:45:36Z","updated_at":"2015-02-03T20:01:02Z","closed_at":"2015-02-03T20:01:02Z","body":"Although many people ensure that new version (0.9.11) has fixed the OnPeersDisconnected(string[] participantIds) problem, in my case OnPeersDisconnected(string[] participantIds) is not working. But i used version(0.9.02) and worked just fine.\r\n\r\nI has implemented a multiplayer game. When a player disconnected i use a virtual player to take his place until only one player left. This is done by identifying a players disconnection through OnPeersDisconnected(string[] participantIds). It seems like OnPeersDisconnected(string[] participantIds) not called when one or two player disconnected. But if there's only one player left then the game quits as desired. Version (0.9.02) worked according to those conditions. I also check QuizRacer and QuizRacer_4.6 sample but same result.\r\n\r\nIf anyone has any idea about my mistake please help.\r\nAny response will be greatly appreciated and i am very sorry for opening a duplicate issue."},"comment":{"url":"https://api.github.com/repos/playgameservices/play-games-plugin-for-unity/issues/comments/72722928","html_url":"https://github.com/playgameservices/play-games-plugin-for-unity/issues/379#issuecomment-72722928","issue_url":"https://api.github.com/repos/playgameservices/play-games-plugin-for-unity/issues/379","id":72722928,"user":{"login":"Bulbul108","id":6562739,"avatar_url":"https://avatars.githubusercontent.com/u/6562739?v=3","gravatar_id":"","url":"https://api.github.com/users/Bulbul108","html_url":"https://github.com/Bulbul108","followers_url":"https://api.github.com/users/Bulbul108/followers","following_url":"https://api.github.com/users/Bulbul108/following{/other_user}","gists_url":"https://api.github.com/users/Bulbul108/gists{/gist_id}","starred_url":"https://api.github.com/users/Bulbul108/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bulbul108/subscriptions","organizations_url":"https://api.github.com/users/Bulbul108/orgs","repos_url":"https://api.github.com/users/Bulbul108/repos","events_url":"https://api.github.com/users/Bulbul108/events{/privacy}","received_events_url":"https://api.github.com/users/Bulbul108/received_events","type":"User","site_admin":false},"created_at":"2015-02-03T20:01:02Z","updated_at":"2015-02-03T20:01:02Z","body":"Problem solved.\r\n play-games-plugin-for-unity/source/PluginDev/Assets/GooglePlayGames/Platforms/Native/NativeRealtimeMultiplayerClient.cs#L861\r\n if (staleParticipant.IsConnectedToRoom() && !freshParticipant.IsConnectedToRoom()) {\r\nnewlyLeft.Add(participantId);\r\n}\r\nreplaced with-\r\n if (!freshParticipant.IsConnectedToRoom()) {\r\nnewlyLeft.Add(participantId);\r\n}"}}