kopia lustrzana https://github.com/keenerd/rtl-sdr
rtl_tcp: increase the timeout in worker thread
the reset takes ages on windows Signed-off-by: Steve Markgraf <steve@steve-m.de>pull/1/merge
rodzic
7ff4abd378
commit
aabd42dd05
|
@ -179,7 +179,7 @@ static void *tcp_worker(void *arg)
|
||||||
|
|
||||||
pthread_mutex_lock(&ll_mutex);
|
pthread_mutex_lock(&ll_mutex);
|
||||||
gettimeofday(&tp, NULL);
|
gettimeofday(&tp, NULL);
|
||||||
ts.tv_sec = tp.tv_sec+1;
|
ts.tv_sec = tp.tv_sec+5;
|
||||||
ts.tv_nsec = tp.tv_usec * 1000;
|
ts.tv_nsec = tp.tv_usec * 1000;
|
||||||
r = pthread_cond_timedwait(&cond, &ll_mutex, &ts);
|
r = pthread_cond_timedwait(&cond, &ll_mutex, &ts);
|
||||||
if(r == ETIMEDOUT) {
|
if(r == ETIMEDOUT) {
|
||||||
|
|
Ładowanie…
Reference in New Issue