diff --git a/dev/n_osync.sh b/dev/n_osync.sh index 782d448..e7d1dc4 100644 --- a/dev/n_osync.sh +++ b/dev/n_osync.sh @@ -9,7 +9,7 @@ PROGRAM="osync" # Rsync based two way sync engine with fault tolerance AUTHOR="(C) 2013-2018 by Orsiris de Jong" CONTACT="http://www.netpower.fr/osync - ozy@netpower.fr" PROGRAM_VERSION=1.3.0-beta1 -PROGRAM_BUILD=2018101002 +PROGRAM_BUILD=2018101003 IS_STABLE=no ##### Execution order #__WITH_PARANOIA_DEBUG @@ -718,8 +718,8 @@ function UnlockReplicas { fi fi - if [ "$unlockPids" -ne 0 ]; then - ExecTasks "$initiatorPid;$targetPid" "${FUNCNAME[0]}" false 0 0 720 1800 true $SLEEP_TIME $KEEP_LOGGING + if [ "$unlockPids" != "0" ]; then + ExecTasks "$unlockPids" "${FUNCNAME[0]}" false 0 0 720 1800 true $SLEEP_TIME $KEEP_LOGGING fi }