Blob Blame History Raw
From 4025c8ce6a4eba38e2e61eda342c17ea8beb9064 Mon Sep 17 00:00:00 2001
From: Benjamin Berg <bberg@redhat.com>
Date: Thu, 5 Dec 2019 17:28:47 +0100
Subject: [PATCH 133/181] examples: Fix double device closing in manage-prints

The manage-prints command would close the device twice when the user
hits an invalid number or 'n' and no prints need to be deleted.

Simply remove the erroneous call to fix the issue.
---
 examples/manage-prints.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/examples/manage-prints.c b/examples/manage-prints.c
index 7bbbc5e..d64b5fa 100644
--- a/examples/manage-prints.c
+++ b/examples/manage-prints.c
@@ -197,9 +197,6 @@ on_list_completed (FpDevice     *dev,
                 list_data->ret_value = EXIT_SUCCESS;
               else
                 g_warning ("Invalid finger selected");
-
-              fp_device_close (dev, NULL, (GAsyncReadyCallback) on_device_closed,
-                               list_data);
             }
         }
 
-- 
2.24.1