cleanup
This commit is contained in:
parent
22189b3ac8
commit
f9ab6290b3
@ -7,7 +7,7 @@
|
|||||||
from fenrirscreenreader.core import debug
|
from fenrirscreenreader.core import debug
|
||||||
from fenrirscreenreader.core.eventData import fenrirEventType
|
from fenrirscreenreader.core.eventData import fenrirEventType
|
||||||
from queue import Empty
|
from queue import Empty
|
||||||
import time, platform
|
import time
|
||||||
from multiprocessing import Queue
|
from multiprocessing import Queue
|
||||||
from multiprocessing.sharedctypes import Value
|
from multiprocessing.sharedctypes import Value
|
||||||
from ctypes import c_bool
|
from ctypes import c_bool
|
||||||
@ -28,11 +28,10 @@ class eventManager():
|
|||||||
self.eventDispatcher(event)
|
self.eventDispatcher(event)
|
||||||
#print('NET loop ' + str(time.time() - st))
|
#print('NET loop ' + str(time.time() - st))
|
||||||
def eventDispatcher(self, event):
|
def eventDispatcher(self, event):
|
||||||
if platform.system() == 'Darwin':
|
try:
|
||||||
self.env['runtime']['debug'].writeDebugOut('eventManager:eventDispatcher:start: event:' + str(event['Type']) + ' QueueSize:Not Implemented',debug.debugLevel.INFO)
|
|
||||||
else:
|
|
||||||
self.env['runtime']['debug'].writeDebugOut('eventManager:eventDispatcher:start: event:' + str(event['Type']) + ' QueueSize:' + str( self._eventQueue.qsize()),debug.debugLevel.INFO)
|
self.env['runtime']['debug'].writeDebugOut('eventManager:eventDispatcher:start: event:' + str(event['Type']) + ' QueueSize:' + str( self._eventQueue.qsize()),debug.debugLevel.INFO)
|
||||||
|
except NotImplementedError:
|
||||||
|
self.env['runtime']['debug'].writeDebugOut('eventManager:eventDispatcher:start: event:' + str(event['Type']) + ' QueueSize:Not Implemented',debug.debugLevel.INFO)
|
||||||
|
|
||||||
if not event:
|
if not event:
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user