Fixing the RemoteConnector freezing on session restart
requested to merge lazygamedevza/SecondMonitor:fix/remote-connector-freezing-on-session-restart into master
Closes #35 (closed)
Made multiple changes to try and make the RemoteConnector
more resilient":
- DatagramPayloadPackermarks
DatagramPayload
with type HeartBeat as not containing OtherDriversTiming, PlayersTiming and SimulatorSourceInfo. - DatagramPayload does a
null
check on theDriversInfo
array (this was the root cause, because it was throwing aNullReferenceException
that brings down the client loop. - An error on the
ClientCheckLoop
will now ensure the connector gets properly disconnected.
This should now also fix some data that was missed and wasn't included in the ProtoBuff
migration. One of which was the ability to correctly generate a track map.
P.S. @winzarten I do hope that this change can be merged and deployed soon. I'm so sorry for missing this during my testing and hope that submitting this fix relatively quickly makes up for it.