Skip to content

Commit c59ce56

Browse files
committed
Removed unnecessary While Loop
1 parent fb9a94c commit c59ce56

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

app/src/main/java/com/wtf/lightwite/Threads/ReceiveBluetooth.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,13 @@ public ReceiveBluetooth(BluetoothSocket socket){
3333
} @Override
3434
public void run() {
3535
buffer = new byte[1024];
36-
while (true){
3736
try {
3837
bytes = inputStream.read(buffer,0,buffer.length);
3938
MainActivity.handler.obtainMessage(STATE_MESSAGE_RECIVED,bytes,-1,buffer).sendToTarget();
40-
4139
} catch (IOException e) {
4240
e.printStackTrace();
4341
}
44-
} }
42+
}
4543
public void write(byte[] data){
4644
try {
4745
outputStream.write(data,0, data.length);

0 commit comments

Comments
 (0)