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/fsuipc.py

    r530 r535  
    44import util
    55import acft
     6from watchdog import Watchdog
    67
    78import threading
     
    244245        self._periodicRequests = []
    245246
     247        self._watchdogClient = Watchdog.get().addClient(2.0, "fsuipc.Handler")
     248
    246249        self.daemon = True
    247250
     
    441444        needReconnect = False
    442445        try:
     446            self._watchdogClient.set()
    443447            try:
    444448                if not request.process(time):
     
    459463                return 0
    460464        finally:
     465            self._watchdogClient.clear()
    461466            self._requestCondition.acquire()
    462467
Note: See TracChangeset for help on using the changeset viewer.