From 8c5eede914fb344dc7851927398f4d78e8a0be8a Mon Sep 17 00:00:00 2001
From: Benjamin Berg <bberg@redhat.com>
Date: Thu, 5 Dec 2019 17:28:47 +0100
Subject: [PATCH] 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);
             }
         }