mirror of
https://github.com/rtlsdrblog/rtl-sdr-blog.git
synced 2025-02-28 18:04:09 +01:00
rtl_tcp: increase the timeout in worker thread
the reset takes ages on windows Signed-off-by: Steve Markgraf <steve@steve-m.de>
This commit is contained in:
parent
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) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user