From 9d4d4acda30e5fabc439a8fbf3ca8b05b5eff11f Mon Sep 17 00:00:00 2001 From: janw Date: Mon, 31 Mar 2008 10:00:47 +0000 Subject: [PATCH] Fixed delay set time. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10080 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-si/gosa-si-client | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gosa-si/gosa-si-client b/gosa-si/gosa-si-client index 1eeb7722b..ff728f2ac 100755 --- a/gosa-si/gosa-si-client +++ b/gosa-si/gosa-si-client @@ -76,7 +76,7 @@ $gosa_si_client_fifo = "/var/run/gosa-si-client.socket"; # in function register_at_gosa_si_server, after which period of seconds a new registration should be tried if a registration was # not successful until now -my $delay_set_time = 5; +my $delay_set_time = 10; our $prg= basename($0); # all x seconds the client reports logged_in users to gosa-si-server @@ -746,6 +746,8 @@ sub register_at_gosa_si_server { # send xml hash to server with general server passwd my $res = &send_msg_hash_to_target($register_hash, $server, $default_server_key); + if( $try_to_register >= @servers ) { last; } + # if delivery of registration msg succeed if($res == 0) { # reset try_to_register @@ -766,8 +768,6 @@ sub register_at_gosa_si_server { next; } - if( $try_to_register >= @servers ) { last; } - } # end of while # one circle through all servers finished and no registration succeed -- 2.30.2