summaryrefslogtreecommitdiff
path: root/src/session.c
diff options
context:
space:
mode:
authorportix <none@none>2012-08-27 01:17:36 +0200
committerportix <none@none>2012-08-27 01:17:36 +0200
commitaa261c53b5d23b4bd4f169dc0f292c4e7f476e8f (patch)
tree6e7d4a7a9b1fe24b55b10061fa1330011d5e2b47 /src/session.c
parent88190744663a933a51f793b66b1ba569228fe62c (diff)
downloaddwb-aa261c53b5d23b4bd4f169dc0f292c4e7f476e8f.zip
Replace option sync-files with file-sync-interval, sync-files now specifies type of file to sync; also sync session
Diffstat (limited to 'src/session.c')
-rw-r--r--src/session.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/session.c b/src/session.c
index 9b79e109..bf86d003 100644
--- a/src/session.c
+++ b/src/session.c
@@ -274,8 +274,9 @@ session_save(const char *name, int flags) {
}
}
}
- session_save_file(name, buffer->str, false);
- g_free(m_session_name);
+ session_save_file(name, buffer->str, (flags & SESSION_SYNC) != 0);
+ if (! (flags & SESSION_SYNC))
+ g_free(m_session_name);
g_string_free(buffer, true);
return true;
}/*}}}*/