Skip to content

Commit

Permalink
清除队列中的任务
Browse files Browse the repository at this point in the history
  • Loading branch information
liuwenzheng committed Dec 16, 2020
1 parent b7e8dbc commit 3bea02a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mokosupport/src/main/java/com/moko/support/MokoSupport.java
Original file line number Diff line number Diff line change
Expand Up @@ -100,13 +100,13 @@ public void onDeviceConnected(@NonNull BluetoothDevice device) {

@Override
public void onDeviceDisconnecting(@NonNull BluetoothDevice device) {
if (mQueue != null && !mQueue.isEmpty()) {
mQueue.clear();
}
}

@Override
public void onDeviceDisconnected(@NonNull BluetoothDevice device) {
if (mQueue != null && !mQueue.isEmpty()) {
mQueue.clear();
}
ConnectStatusEvent connectStatusEvent = new ConnectStatusEvent();
connectStatusEvent.setAction(MokoConstants.ACTION_CONN_STATUS_DISCONNECTED);
EventBus.getDefault().post(connectStatusEvent);
Expand Down

0 comments on commit 3bea02a

Please sign in to comment.