From: janw Date: Mon, 31 Mar 2008 10:00:47 +0000 (+0000) Subject: Fixed delay set time. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=9d4d4acda30e5fabc439a8fbf3ca8b05b5eff11f;p=gosa.git Fixed delay set time. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10080 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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