Ensure InitEncoderData is called before DelayedPublisher connects

This seems to fix crashes in various subsystems that were introduced
in e7804fcef0 when using a publish delay
master
palana 2014-10-03 23:02:00 +02:00
parent c4a77ace4d
commit bebaf1bf78
1 changed files with 2 additions and 0 deletions

View File

@ -156,6 +156,8 @@ public:
void SendPacket(BYTE *data, UINT size, DWORD timestamp, PacketType type)
{
InitEncoderData();
ProcessDelayedPackets(timestamp);
NetworkPacket *newPacket = delayedPackets.CreateNew();