Sfoglia il codice sorgente

disable force canceling for now to prevent crashes

Hoernchen 12 anni fa
parent
commit
f1ac20c371
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. 2 1
      src/librtlsdr.c

+ 2 - 1
src/librtlsdr.c

@@ -1657,11 +1657,12 @@ int rtlsdr_cancel_async(rtlsdr_dev_t *dev)
 	}
 
 	/* if called while in pending state, change the state forcefully */
+#if 0
 	if (RTLSDR_INACTIVE != dev->async_status) {
 		dev->async_status = RTLSDR_INACTIVE;
 		return 0;
 	}
-
+#endif
 	return -2;
 }