Skip to content

Commit 2c71002

Browse files
committed
fix for client crash
1 parent 264608d commit 2c71002

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

direct/src/distributed/ConnectionRepository.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def __init__(self, connectMethod, config, hasOwnerView=False):
116116
# manual garbage-collect task
117117
taskMgr.add(self._garbageCollect, self.GarbageCollectTaskName, 200)
118118
# periodically increase gc threshold if there is no garbage
119-
taskMgr.doMethodLater(self.config.GetFloat('garbage-threshold-adjust-delay', 15 * 60.),
119+
taskMgr.doMethodLater(self.config.GetFloat('garbage-threshold-adjust-delay', 5 * 60.),
120120
self._adjustGcThreshold, self.GarbageThresholdTaskName)
121121

122122
self._gcDefaultThreshold = gc.get_threshold()

direct/src/showbase/GarbageReport.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,7 @@ def checkForGarbageLeaks():
529529
func('%s garbage cycles found, see info above' % gr.getNumCycles())
530530
return numGarbage
531531

532-
def b_checkForGarbageLeaks():
532+
def b_checkForGarbageLeaks(wantReply=False):
533533
# does a garbage collect on the client and the AI
534534
# returns number of client garbage leaks
535535
# logs leak info and terminates (if configured to do so)
@@ -540,5 +540,5 @@ def b_checkForGarbageLeaks():
540540
pass
541541
else:
542542
if base.cr.timeManager:
543-
base.cr.timeManager.d_checkForGarbageLeaks()
543+
base.cr.timeManager.d_checkForGarbageLeaks(wantReply=wantReply)
544544
return checkForGarbageLeaks()

0 commit comments

Comments
 (0)