mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
moved readerPollTask to earlier priority
This commit is contained in:
parent
476fb91e31
commit
cbefb7dd2c
@ -17,6 +17,8 @@ import DirectObject
|
||||
class ClientRepository(DirectObject.DirectObject):
|
||||
notify = DirectNotifyGlobal.directNotify.newCategory("ClientRepository")
|
||||
|
||||
TASK_PRIORITY = -30
|
||||
|
||||
def __init__(self, dcFileName):
|
||||
self.number2cdc={}
|
||||
self.name2cdc={}
|
||||
@ -71,7 +73,7 @@ class ClientRepository(DirectObject.DirectObject):
|
||||
task = Task.Task(self.rawReaderPollUntilEmpty)
|
||||
# Start with empty string
|
||||
task.currentRawString = ""
|
||||
taskMgr.add(task, "rawReaderPollTask")
|
||||
taskMgr.add(task, "rawReaderPollTask", priority=self.TASK_PRIORITY)
|
||||
return None
|
||||
|
||||
def stopRawReaderPollTask(self):
|
||||
@ -107,7 +109,8 @@ class ClientRepository(DirectObject.DirectObject):
|
||||
# Stop any tasks we are running now
|
||||
self.stopRawReaderPollTask()
|
||||
self.stopReaderPollTask()
|
||||
taskMgr.add(self.readerPollUntilEmpty, "readerPollTask")
|
||||
taskMgr.add(self.readerPollUntilEmpty, "readerPollTask",
|
||||
priority=self.TASK_PRIORITY)
|
||||
return None
|
||||
|
||||
def stopReaderPollTask(self):
|
||||
|
Loading…
x
Reference in New Issue
Block a user