Ensure InitEncoderData is called before DelayedPublisher connects
This seems to fix crashes in various subsystems that were introduced in e7804fcef0b9afa2b22bd5bc8c57c6c706f02ab1 when using a publish delay
This commit is contained in:
parent
c4a77ace4d
commit
bebaf1bf78
@ -156,6 +156,8 @@ public:
|
|||||||
|
|
||||||
void SendPacket(BYTE *data, UINT size, DWORD timestamp, PacketType type)
|
void SendPacket(BYTE *data, UINT size, DWORD timestamp, PacketType type)
|
||||||
{
|
{
|
||||||
|
InitEncoderData();
|
||||||
|
|
||||||
ProcessDelayedPackets(timestamp);
|
ProcessDelayedPackets(timestamp);
|
||||||
|
|
||||||
NetworkPacket *newPacket = delayedPackets.CreateNew();
|
NetworkPacket *newPacket = delayedPackets.CreateNew();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user