From e66a7115b9f9c00dc86971ac583781feb949236f Mon Sep 17 00:00:00 2001 From: Little Cat Date: Sun, 20 Jun 2021 03:52:03 -0300 Subject: [PATCH] direct: Fix adding post removes Fixes AI cleanup upon disconnection --- direct/src/distributed/AstronInternalRepository.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/direct/src/distributed/AstronInternalRepository.py b/direct/src/distributed/AstronInternalRepository.py index ba14010e27..4c497c2224 100644 --- a/direct/src/distributed/AstronInternalRepository.py +++ b/direct/src/distributed/AstronInternalRepository.py @@ -207,7 +207,7 @@ class AstronInternalRepository(ConnectionRepository): dg2 = PyDatagram() dg2.addServerControlHeader(CONTROL_ADD_POST_REMOVE) dg2.addUint64(self.ourChannel) - dg2.appendData(dg.getMessage()) + dg2.addBlob(dg.getMessage()) self.send(dg2) def clearPostRemove(self):