change for bionic only to zero out if set

This commit is contained in:
iceman1001 2020-03-21 20:18:42 +01:00
commit 7e97062381

View file

@ -671,7 +671,13 @@ void CloseProxmark(void) {
// Clean up our state
sp = NULL;
#ifdef __BIONIC__
if (communication_thread != 0) {
memset(&communication_thread, 0, sizeof(pthread_t));
}
#else
memset(&communication_thread, 0, sizeof(pthread_t));
#endif
session.pm3_present = false;
}