Skip to content

Commit 803d1ad

Browse files
committed
Fixed #48
1 parent c1006ec commit 803d1ad

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

core/src/main/java/xyz/gianlu/librespot/core/Session.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ private void sendUnchecked(Packet.Type cmd, byte[] payload) throws IOException {
284284

285285
private void waitAuthLock() {
286286
synchronized (authLock) {
287-
if (authLock.get()) {
287+
if (cipherPair == null || authLock.get()) {
288288
try {
289289
authLock.wait();
290290
} catch (InterruptedException ex) {
@@ -581,7 +581,7 @@ private static class Accumulator extends DataOutputStream {
581581

582582
void dump() throws IOException {
583583
bytes = ((ByteArrayOutputStream) this.out).toByteArray();
584-
close();
584+
this.close();
585585
}
586586

587587
@NotNull

0 commit comments

Comments
 (0)