Skip to content

Commit b4b4d16

Browse files
committed
unix/mpbtstackport_usb: Remove thread detached attribute.
As in the previous commit, the thread is later joined so can't be detached. Signed-off-by: Damien George <[email protected]>
1 parent 220088f commit b4b4d16

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

ports/unix/mpbtstackport_usb.c

+1-4
Original file line numberDiff line numberDiff line change
@@ -110,10 +110,7 @@ static void *btstack_thread(void *arg) {
110110

111111
void mp_bluetooth_btstack_port_start(void) {
112112
// Create a thread to run the btstack loop.
113-
pthread_attr_t attr;
114-
pthread_attr_init(&attr);
115-
pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
116-
pthread_create(&bstack_thread_id, &attr, &btstack_thread, NULL);
113+
pthread_create(&bstack_thread_id, NULL, &btstack_thread, NULL);
117114
}
118115

119116
#endif // MICROPY_PY_BLUETOOTH && MICROPY_BLUETOOTH_BTSTACK && MICROPY_BLUETOOTH_BTSTACK_USB

0 commit comments

Comments
 (0)