Skip to content

Commit 9335390

Browse files
committed
cdba-server: don't try opening the board if there is none
If the cdba failed to find the board, don't call device_fastboot_open(). Signed-off-by: Dmitry Baryshkov <[email protected]>
1 parent 61babbf commit 9335390

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cdba-server.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,10 @@ static void msg_select_board(const void *param)
5959
if (!selected_device) {
6060
fprintf(stderr, "failed to open %s\n", (const char *)param);
6161
watch_quit();
62+
} else {
63+
device_fastboot_open(selected_device, &fastboot_ops);
6264
}
6365

64-
device_fastboot_open(selected_device, &fastboot_ops);
65-
6666
cdba_send(MSG_SELECT_BOARD);
6767
}
6868

0 commit comments

Comments
 (0)