We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a03b16c commit 6ecb970Copy full SHA for 6ecb970
1 file changed
core/src/main/java/xyz/gianlu/librespot/core/TokenProvider.java
@@ -37,7 +37,7 @@ private StoredToken findTokenWithAllScopes(String[] scopes) {
37
}
38
39
@NotNull
40
- public StoredToken getToken(@NotNull String... scopes) throws IOException, MercuryClient.MercuryException {
+ public synchronized StoredToken getToken(@NotNull String... scopes) throws IOException, MercuryClient.MercuryException {
41
if (scopes.length == 0) throw new IllegalArgumentException();
42
43
StoredToken token = findTokenWithAllScopes(scopes);
0 commit comments