#[BUG] NetworkDriver throws exceptions when last client disconnects and you attempt to pop events

1 messages · Page 1 of 1 (latest)

fringe sentinel
#

UnityTransport 2.4.0 package in file ConnectionDataMap.cs line 81
if (index < 0 || index > m_List.Length) does not account for index can be 0 and it won't be > than empty list resulting in exception
System.IndexOutOfRangeException: Index 0 is out of range in container of '0' Length.

To fix - just replace > with >=

#

@left marsh

left marsh
#

(back from vacation now) i think @finite beacon would know where this should go

finite beacon
#

Hey hey (and likewise), I've forwarded this to the transport folks for comment 🙂