rendered paste body def sendQueuedUpdates(self): while self.locked: pass if len(self.chanSRV) != 0: first = True for packet in self.chanSRV: if first: megaPacket = packet first = False else: megaPacket = enet.combinePackets(megaPacket, packet) enet.enet_peer_send(self.peer, 0, megaPacket) if len(self.chanNFO) != 0: first = True for ent,unintroduced_packet in self.chanNFO: print "introducing ", ent.entnum, " aka ", ent.name, " ", packet.dataLength packet = enet.combinePackets(enet.packetsIntroduction(ent.entnum, unintroduced_packet), unintroduced_packet) enet.enet_peer_send(self.peer, 1, packet) if first: megaPacket = packet first = False else: megaPacket = enet.combinePackets(megaPacket, packet) #enet.enet_peer_send(self.peer, 1, megaPacket) self.chanSRV.clear() self.chanNFO.clear()