Skip to content

Commit

Permalink
modify exception process when put buffer data
Browse files Browse the repository at this point in the history
  • Loading branch information
jicheng.gujc committed Oct 28, 2013
1 parent aab2ba5 commit 8f99d7e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/com/libra/sinvoice/Buffer.java
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,13 @@ public Buffer(int bufferCount, int bufferSize) {
// we want to put the end buffer, so need to add 1
mConsumeQueue = new LinkedBlockingQueue<BufferData>(mBufferCount + 1);

for (int i = 0; i < mBufferCount; ++i) {
try {
try {
for (int i = 0; i < mBufferCount; ++i) {
mProducerQueue.put(new BufferData(mBufferSize));
} catch (InterruptedException e) {
e.printStackTrace();
}
} catch (InterruptedException e) {
e.printStackTrace();
LogHelper.e(TAG, "put buffer data error");
}
}

Expand Down

0 comments on commit 8f99d7e

Please sign in to comment.