[connections] application: Close connection after deleting it



commit f7a932cc827d198b917d21e305d96e8bd3b2b24d
Author: Manuel Wassermann <manuel wassermann97 gmail com>
Date:   Fri Nov 26 15:21:52 2021 +0100

    application: Close connection after deleting it
    
    Otherwise, the connection to the remote machine stays
    open until you close the application.

 src/application.vala | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/src/application.vala b/src/application.vala
index 27d4c59..ce2dee9 100644
--- a/src/application.vala
+++ b/src/application.vala
@@ -166,6 +166,7 @@ namespace Connections {
 
             Notification.DismissFunc really_remove = () => {
                 debug ("User did not cancel deletion. Deleting now...");
+                connection.disconnect_it ();
                 connection.delete_auth_credentials.begin ();
                 Database.get_default ().delete_connection (connection);
             };


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]