Merge pull request #58 from diegoximenes/fix/automatic_restore

Fix automatic restore.
This commit is contained in:
Bruno Sutic 2019-03-04 14:54:54 +01:00 committed by GitHub
commit 10c6d73791
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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() {