Add another #ifdef for the __BIONIC__ fix (the effect of setting p_thread to 0 is undefined for other libs)

This commit is contained in:
pwpiwi 2018-10-06 17:48:43 +02:00
parent a025b74606
commit eed83b910c

View file

@ -364,7 +364,9 @@ void CloseProxmark(void) {
// Clean up our state // Clean up our state
sp = NULL; sp = NULL;
serial_port_name = NULL; serial_port_name = NULL;
#ifdef __BIONIC__
memset(&USB_communication_thread, 0, sizeof(pthread_t)); memset(&USB_communication_thread, 0, sizeof(pthread_t));
#endif
} }