Skip to content

Commit 448b906

Browse files
author
Julio Montes
committed
fix save instance id failed
1 parent 48e1ada commit 448b906

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/lib.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -543,13 +543,14 @@ bool save_instance_id(const gchar* id) {
543543
LOG(MOD "Unable to save instance id\n");
544544
goto exit;
545545
}
546-
result = true;
547546
G_LOCK(first_boot_id_file);
548547
remove(FIRST_BOOT_ID_FILE);
549548
G_UNLOCK(first_boot_id_file);
550549
}
551550
}
552551

552+
result = true;
553+
553554
exit:
554555
g_string_free(instance_id, true);
555556
return result;

0 commit comments

Comments
 (0)