Skip to content

Commit

Permalink
Fixed #48
Browse files Browse the repository at this point in the history
  • Loading branch information
devgianlu committed Feb 16, 2019
1 parent c1006ec commit 803d1ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/main/java/xyz/gianlu/librespot/core/Session.java
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ private void sendUnchecked(Packet.Type cmd, byte[] payload) throws IOException {

private void waitAuthLock() {
synchronized (authLock) {
if (authLock.get()) {
if (cipherPair == null || authLock.get()) {
try {
authLock.wait();
} catch (InterruptedException ex) {
Expand Down Expand Up @@ -581,7 +581,7 @@ private static class Accumulator extends DataOutputStream {

void dump() throws IOException {
bytes = ((ByteArrayOutputStream) this.out).toByteArray();
close();
this.close();
}

@NotNull
Expand Down

0 comments on commit 803d1ad

Please sign in to comment.