Ignore:
Timestamp:
09/01/13 09:15:58 (11 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
hg-Phase:
(<MercurialRepository 1 'hg:/home/ivaradi/mlx/hg' '/'>, 'public')
Message:

Implemented watchdog monitoring the FSUIPC and X-Plane connection handlers

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/xplane.py

    r505 r535  
    33import const
    44import util
     5from watchdog import Watchdog
    56
    67import threading
     
    341342        self._periodicRequests = []
    342343
     344        self._watchdogClient = Watchdog.get().addClient(2.0, "xplane.Handler")
     345
    343346        self.daemon = True
    344347
     
    571574        needReconnect = False
    572575        try:
     576            self._watchdogClient.set()
    573577            try:
    574578                if not request.process(time):
     
    589593                return 0
    590594        finally:
     595            self._watchdogClient.clear()
    591596            self._requestCondition.acquire()
    592597
Note: See TracChangeset for help on using the changeset viewer.