Fix automatic restore.

This commit is contained in:
Diego Ximenes Mendes 2019-03-02 09:49:42 -03:00
parent 4e2279688d
commit 509e898da6

View File

@ -44,7 +44,9 @@ add_resurrect_save_interpolation() {
} }
just_started_tmux_server() { just_started_tmux_server() {
[ "$(tmux display-message -p -F '#{start_time}')" -gt "$(($(date +%s)-10))" ] local tmux_start_time
tmux_start_time="$(tmux display-message -p -F '#{start_time}')"
[ "$tmux_start_time" == "" ] || [ "$tmux_start_time" -gt "$(($(date +%s)-10))" ]
} }
start_auto_restore_in_background() { start_auto_restore_in_background() {