[gnome-commander] Set the remote connection state to CLOSED if the state was not OPENING before



commit f5d9aabea047cabc75a8d54857a12e0cb96a7580
Author: Uwe Scholz <u scholz83 gmx de>
Date:   Wed Sep 22 23:07:09 2021 +0200

    Set the remote connection state to CLOSED if the state was not OPENING before

 src/gnome-cmd-con-remote.cc | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/src/gnome-cmd-con-remote.cc b/src/gnome-cmd-con-remote.cc
index a0f9ba0e..062325da 100644
--- a/src/gnome-cmd-con-remote.cc
+++ b/src/gnome-cmd-con-remote.cc
@@ -68,13 +68,15 @@ static void get_file_info_func (GnomeCmdCon *con)
         }
     }
     else
+    {
         if (con->state == GnomeCmdCon::STATE_CANCELLING)
             DEBUG('m', "The open operation was cancelled, doing nothing\n");
         else
             DEBUG('m', "Strange ConState %d\n", con->state);
+        con->state = GnomeCmdCon::STATE_CLOSED;
+    }
 }
 
-
 static gboolean start_get_file_info (GnomeCmdCon *con)
 {
     g_thread_new (nullptr, (GThreadFunc) get_file_info_func, con);


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