summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/idevicerestore.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/idevicerestore.c b/src/idevicerestore.c
index 42f257a..f354b12 100644
--- a/src/idevicerestore.c
+++ b/src/idevicerestore.c
@@ -227,6 +227,9 @@ static void irecv_event_cb(const irecv_device_event_t* event, void *userdata)
{
struct idevicerestore_client_t *client = (struct idevicerestore_client_t*)userdata;
if (event->type == IRECV_DEVICE_ADD) {
+ if (!client->udid && !client->ecid) {
+ client->ecid = event->device_info->ecid;
+ }
if (client->ecid && event->device_info->ecid == client->ecid) {
switch (event->mode) {
case IRECV_K_WTF_MODE: