Code

Increased waiting time.
authorjanw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 6 Feb 2008 11:04:27 +0000 (11:04 +0000)
committerjanw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 6 Feb 2008 11:04:27 +0000 (11:04 +0000)
Corrected is_connected check

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8756 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-si/gosa-si-client

index d90279583213fc3649b327fea4346c01db5f3193..787b9bdd56388bc76689458e4855e8f9e020952d 100755 (executable)
@@ -866,10 +866,14 @@ sub register_at_gosa_si_server {
 
             # send xml hash to server with general server passwd
             my $res = &send_msg_hash2address($register_hash, $server, $default_server_key);
-            last;
+                       if($res) {
+                               last;
+                       } else {
+                               next;
+                       }
         }
         daemon_log("waiting for msg 'register_at_gosa_si_server'",1);
-        $kernel->delay_set('register_at_gosa_si_server',2);
+        $kernel->delay_set('register_at_gosa_si_server',180);
         # clear old settings and set it again
         $kernel->delay_set('trigger_new_key', $server_key_lifetime);
     }