Skip to content
This repository has been archived by the owner on Jun 15, 2022. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
session, link: Keep lock while getting strings from libspotify
  • Loading branch information
jodal committed Aug 5, 2015
1 parent 9e76180 commit 7ffa932
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/changelog.rst
Expand Up @@ -2,6 +2,16 @@
Changelog
*********

v2.0.2 (UNRELEASED)
===================

Bug fix release.

- Make :attr:`spotify.Session.remembered_user_name` and
:attr:`spotify.Link.uri` acquire the global lock while working on data
returned from libspotify.


v2.0.1 (2015-07-20)
===================

Expand Down
1 change: 1 addition & 0 deletions spotify/link.py
Expand Up @@ -102,6 +102,7 @@ def __hash__(self):
return hash(self._sp_link)

@property
@serialized
def uri(self):
"""The link's Spotify URI."""
return utils.get_with_growing_buffer(
Expand Down
1 change: 1 addition & 0 deletions spotify/session.py
Expand Up @@ -172,6 +172,7 @@ def logout(self):
spotify.Error.maybe_raise(lib.sp_session_logout(self._sp_session))

@property
@serialized
def remembered_user_name(self):
"""The username of the remembered user from a previous :meth:`login`
call."""
Expand Down

0 comments on commit 7ffa932

Please sign in to comment.