kopia lustrzana https://github.com/windytan/slowrx
fixed a crash in pthread_join()
rodzic
97d179514e
commit
0ef9d5c4bf
5
common.c
5
common.c
|
@ -124,7 +124,10 @@ void evt_changeDevices() {
|
|||
pcm.BufferDrop = FALSE;
|
||||
Abort = TRUE;
|
||||
|
||||
pthread_join(thread1, NULL);
|
||||
static int init;
|
||||
if (init)
|
||||
pthread_join(thread1, NULL);
|
||||
init = 1;
|
||||
|
||||
if (pcm.handle != NULL) snd_pcm_close(pcm.handle);
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue