Code

Apply fix for #4070
authorpsc <psc@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 29 Apr 2010 11:32:21 +0000 (11:32 +0000)
committerpsc <psc@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 29 Apr 2010 11:32:21 +0000 (11:32 +0000)
When server connection fails while trying to send a message
use post to schedule the register_at_gosa_si_server event
in the proper session, otherwise failover will not work
properly under some circumstances.

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@17930 594d385d-05f5-0310-b6e9-bd551577e9d8

trunk/gosa-si/gosa-si-client

index db4773b465f9018d0a5c793f0daea58cf82a991f..481ea3e1e5b42c4bd5af358fd31e0263afe3dd90 100755 (executable)
@@ -468,7 +468,7 @@ sub send_msg_to_target {
         if ($REGISTERED == 1) {
             $REGISTERED = 0;        # if server is not available, cause reregistering
             daemon_log("INFO: cause reregistering at gosa-si-server", 5); 
-            $global_kernel->yield('register_at_gosa_si_server');
+            $global_kernel->post('client_session', 'register_at_gosa_si_server');
 
         }
         $error++;