From 150ff67e7b6850516c63292ca6648b2e3565384c Mon Sep 17 00:00:00 2001 From: Arnaud Ferraris Date: Wed, 13 Jan 2021 23:46:38 +0100 Subject: [PATCH] udev: only check if modem USB ID is set --- src/udev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/udev.c b/src/udev.c index acf10f8..1c5ebd8 100644 --- a/src/udev.c +++ b/src/udev.c @@ -12,7 +12,7 @@ static void udev_event_cb(GUdevClient *client, gchar *action, GUdevDevice *devic { struct EG25Manager *manager = data; - if (strcmp(action, "unbind") != 0 || manager->modem_state == EG25_STATE_RESETTING) + if (strcmp(action, "unbind") != 0 || manager->modem_state == EG25_STATE_RESETTING || !manager->modem_usb_id) return; if (strncmp(g_udev_device_get_name(device), manager->modem_usb_id, strlen(manager->modem_usb_id)) == 0 &&