Skip to content

Commit 1a42421

Browse files
author
Ryzerth
committed
fixed crash when no dev detected 3
1 parent e8ae202 commit 1a42421

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main_window.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ void drawWindow() {
237237
}
238238
}
239239

240-
if (srId != _srId) {
240+
if (srId != _srId && soapy.devList.size() > 0) {
241241
_srId = srId;
242242
sampleRate = soapy.sampleRates[srId];
243243
printf("Setting sample rate to %f\n", (float)soapy.sampleRates[srId]);

0 commit comments

Comments
 (0)