Skip to content

Commit

Permalink
Trivial null test bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
rom1v committed May 17, 2013
1 parent 159eaf8 commit c7d84b1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion jni/serval-dna
Submodule serval-dna updated from 0e9f64 to aa4aef
8 changes: 4 additions & 4 deletions src/org/servalproject/walkietalkie/AudioReceiver.java
Expand Up @@ -17,9 +17,9 @@

/**
* Receive audio packets, bufferize and mix them, then play.
*
*
* @author Romain Vimont (®om) <rom@rom1v.com>
*
*
*/
public class AudioReceiver {

Expand Down Expand Up @@ -229,12 +229,12 @@ public void run() {
audioTrack.stop();
}
} finally {
if (audioTrack == null) {
if (audioTrack != null) {
audioTrack.release();
}
}
}
};
}

private static int decompress(byte[] buf, byte[] writeBuf, int bufOffset, int bufPayloadLength) {
switch (COMPRESSION) {
Expand Down

0 comments on commit c7d84b1

Please sign in to comment.