Skip to content

Commit 8c09fed

Browse files
committed
fixup! pbdrv/bluetooth: RFCOMM socket API.
Clean up pending_listen_socket on disconnect_all.
1 parent 12091a6 commit 8c09fed

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/pbio/drv/bluetooth/bluetooth_btstack.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2015,6 +2015,7 @@ void pbdrv_bluetooth_rfcomm_disconnect_all() {
20152015
pbdrv_bluetooth_classic_rfcomm_socket_reset(sock);
20162016
}
20172017
}
2018+
pending_listen_socket = NULL;
20182019
}
20192020

20202021
static void pbdrv_bluetooth_inquiry_unpack_scan_event(uint8_t *event_packet, pbdrv_bluetooth_inquiry_result_t *result) {

0 commit comments

Comments
 (0)