From 64a4f9fe920a8086e46b826cbf5b467f4669c183 Mon Sep 17 00:00:00 2001 From: John Date: Sat, 29 Aug 2015 14:28:32 +0300 Subject: [PATCH] FUCK YOU ERROR CODE 10054 --- toontown/ai/ToontownAIRepository.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/toontown/ai/ToontownAIRepository.py b/toontown/ai/ToontownAIRepository.py index f42a45b6..958e3f1c 100755 --- a/toontown/ai/ToontownAIRepository.py +++ b/toontown/ai/ToontownAIRepository.py @@ -52,6 +52,7 @@ from toontown.tutorial.TutorialManagerAI import TutorialManagerAI from toontown.uberdog.DistributedPartyManagerAI import DistributedPartyManagerAI from toontown.uberdog.TopToonsManagerAI import TopToonsManagerAI #from toontown.uberdog.DistributedLobbyManagerAI import DistributedLobbyManagerAI +import threading class ToontownAIRepository(ToontownInternalRepository): def __init__(self, baseChannel, stateServerChannel, districtName): @@ -180,6 +181,9 @@ class ToontownAIRepository(ToontownInternalRepository): def handleConnected(self): ToontownInternalRepository.handleConnected(self) + threading.Thread(target=self.startDistrict).start() + + def startDistrict(self): self.districtId = self.allocateChannel() self.notify.info('Creating ToontownDistrictAI(%d)...' % self.districtId) self.distributedDistrict = ToontownDistrictAI(self)