From: rettenbe Date: Tue, 18 Mar 2008 15:58:40 +0000 (+0000) Subject: possible bugfix for uncontrolable re-registering at gosa-si-client X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=98935520f50e303f6ee2774910f9c750e752eb9e;p=gosa.git possible bugfix for uncontrolable re-registering at gosa-si-client git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9930 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-si/gosa-si-client b/gosa-si/gosa-si-client index 1aae6effd..21a7094c7 100755 --- a/gosa-si/gosa-si-client +++ b/gosa-si/gosa-si-client @@ -1114,8 +1114,15 @@ sub server_input { # got a msg from gosa-si-server which can not be decrypted, may the secrete not up-to-date # cause a reregistering with a new secrete handshake daemon_log("WARNING: Message from gosa-si-server could not be understood, cause reregistering at server", 3); - $REGISTERED = 0; - $kernel->post('client_session', 'register_at_gosa_si_server'); + + # if client is alread in a registration process, that means not registered, do nothing + # if not, cause re-registration + if (not $REGISTERED) { + &daemon_log("WARNING: gosa-si-client is already in a registration process so ignore this message", 3); + } else { + $REGISTERED = 0; + $kernel->post('client_session', 'register_at_gosa_si_server'); + } } $error++; }