This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch master
in repository e16.

View the commit online.

commit 93f8594e4d450ddb827688886f9804b399186b55
Author: Kim Woelders <k...@woelders.dk>
AuthorDate: Sun Mar 10 21:46:25 2024 +0100

    session: Eliminate SessionSave()
---
 src/session.c | 21 ++++++---------------
 1 file changed, 6 insertions(+), 15 deletions(-)

diff --git a/src/session.c b/src/session.c
index 57102081..0b4bad1e 100644
--- a/src/session.c
+++ b/src/session.c
@@ -414,20 +414,6 @@ SessionInit(void)
 #endif
 }
 
-static void
-SessionSave(int shutdown)
-{
-    if (EDebug(EDBUG_TYPE_SESSION))
-        Eprintf("%s: %d\n", __func__, shutdown);
-
-    SnapshotsSaveReal();
-
-#if USE_SM
-    if (shutdown && sm_conn)
-        ice_exit();
-#endif                          /* USE_SM */
-}
-
 /*
  * Normally, the SM will throw away all the session data for a client
  * that breaks its connection unexpectedly. In order to avoid this we 
@@ -449,7 +435,12 @@ doSMExit(int mode, const char *params)
 
     restarting = 1;
 
-    SessionSave(1);
+    SnapshotsSaveReal();
+
+#if USE_SM
+    if (sm_conn)
+        ice_exit();
+#endif
 
     if (mode != EEXIT_THEME && mode != EEXIT_RESTART)
         SessionHelper(ESESSION_STOP);

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

Reply via email to