diff --git a/apsalar/icloudsync b/apsalar/icloudsync index 8938836..a5a27fc 100755 --- a/apsalar/icloudsync +++ b/apsalar/icloudsync @@ -36,8 +36,12 @@ start_sync () { } stop_sync () { - tmux send-keys -t $session C-c exit C-m - echo stopped + if check_session 0; then + echo inactive + else + tmux send-keys -t $session C-c exit C-m + echo stopped + fi } status () {