Changeset 1270


Ignore:
Timestamp:
Apr 22, 2016, 2:17:21 PM (3 years ago)
Author:
hectorgh
Message:

update fucntion is now a thread

Location:
n4d-matrix/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • n4d-matrix/trunk/debian/changelog

    r1265 r1270  
     1n4d-matrix-server (0.7) xenial; urgency=medium
     2
     3  * update function is now a thread
     4
     5 -- Hector Garcia Huerta <hectorgh@gmail.com>  Fri, 22 Apr 2016 14:16:38 +0200
     6
    17n4d-matrix-server (0.6) xenial; urgency=high
    28
  • n4d-matrix/trunk/install_server/usr/share/n4d/python-plugins/Matrix.py

    r1264 r1270  
    55import os
    66import json
     7import threading
     8
    79class Matrix:
    810       
     
    1921
    2022        def startup(self,options):
     23               
    2124                try:
    2225                        self.update_from_matrix()
     
    2528
    2629        def update_from_matrix(self):
     30
     31                t=threading.Thread(target=self.t_update_from_matrix)
     32                t.daemon=True
     33                t.start()
     34
     35        #def update_from_matrix
     36
     37        def t_update_from_matrix(self):
    2738                try:
    2839                        if not objects['SlapdManager'].test_ldap_connection():
Note: See TracChangeset for help on using the changeset viewer.