[pytango] 460/483: Move server_init to tango loop

Sandor Bodo-Merle sbodomerle-guest at moszumanska.debian.org
Thu Sep 28 19:15:12 UTC 2017


This is an automated email from the git hooks/post-receive script.

sbodomerle-guest pushed a commit to annotated tag bliss_8.10
in repository pytango.

commit 2e490dbef9b72234d32228d2467fb240f9b52d5e
Author: coutinho <coutinho at esrf.fr>
Date:   Mon Apr 13 19:00:51 2015 +0200

    Move server_init to tango loop
    
    - make sure post init callback is executed in main thread
---
 src/boost/python/server.py | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/boost/python/server.py b/src/boost/python/server.py
index be4f944..4564a22 100644
--- a/src/boost/python/server.py
+++ b/src/boost/python/server.py
@@ -892,13 +892,13 @@ def __server_run(classes, args=None, msg_stream=sys.stdout, util=None,
 
     log = logging.getLogger("PyTango")
 
-    log.debug("Tango init")
-    _add_classes(util, classes)
-    util.server_init()
-    post_init_callback()
-
     def tango_loop(worker=None):
         log.debug("Tango loop started")
+        _add_classes(util, classes)
+        log.debug("Tango init")
+        util.server_init()
+        if worker:
+            worker.execute(post_init_callback)
         write("Ready to accept request\n")
         util.server_run()
         if worker:

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/pytango.git



More information about the debian-science-commits mailing list