forked from e16/e16
1
0
Fork 0

session: Eliminate SessionSave()

This commit is contained in:
Kim Woelders 2024-03-10 21:46:25 +01:00
parent 7a6a475b20
commit 93f8594e4d
1 changed files with 6 additions and 15 deletions

View File

@ -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);