From 4a01e120914af38c3e1a8ec0ded87cddba31f5ca Mon Sep 17 00:00:00 2001 From: DenialMC Date: Wed, 8 Apr 2015 20:22:13 +0300 Subject: [PATCH] Fix rescheduling --- toontown/ai/DistributedReportMgrAI.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/toontown/ai/DistributedReportMgrAI.py b/toontown/ai/DistributedReportMgrAI.py index 53205440..2e08c799 100644 --- a/toontown/ai/DistributedReportMgrAI.py +++ b/toontown/ai/DistributedReportMgrAI.py @@ -23,14 +23,15 @@ class DistributedReportMgrAI(DistributedObjectAI): if not reporter or reporter.isReported(avId): return - + timestamp = int(round(time.time() * 1000)) self.reports.append('%s|%s|%s|%s' % (timestamp, reporter.doId, avId, category)) def sendAllReports(self): + self.scheduleReport() + if not self.reports or config.GetString('accountdb-type', 'developer') != 'remote': return executeHttpRequestAndLog('report', reports=','.join(self.reports)) - self.reports = [] - self.scheduleReport() \ No newline at end of file + self.reports = [] \ No newline at end of file