Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix api version and avoid unclean kodi exit #60

Merged
merged 3 commits into from
Sep 23, 2016

Conversation

kenji123
Copy link
Member

This PR sets the PVR API version 5.2.0 which is missing in #53.

Also, when quitting Kodi, a network call to 'unsubscribe service events' causes an exception. Network services seem to be already unavailable when pvrmanger destroys the add-on. So, removing that call avoids it.

Either way the call will never succeed unless the user manually disables the add-on before quitting Kodi. And nobody wants to do that every time. Removing the call is user friendliest option for now I think, since AFAIK PVR add-ons can't get 'quit' announcements. Unless something changes in Kodi master.

osx stacktrace
kodi log

// if (retval < 0)
// {
// XBMC->Log(LOG_NOTICE, "CEventsThread:: unsubscribe from events failed");
// }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would just remove the code instead of uncommented it.

@Jalle19
Copy link
Contributor

Jalle19 commented Sep 23, 2016

You can safely ignore the XCode 6.1 build error, it's unrelated.

@kenji123
Copy link
Member Author

Removed the code, and just left the comment.

@Jalle19
Copy link
Contributor

Jalle19 commented Sep 23, 2016

Thanks

@Jalle19 Jalle19 merged commit 87cb678 into kodi-pvr:master Sep 23, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants