We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f939d31 commit fcf9f6aCopy full SHA for fcf9f6a
MLAPI/Transports/Transport.cs
@@ -40,15 +40,18 @@ internal void ResetChannelCache()
40
_channelsCache = null;
41
}
42
43
- public TransportChannel[] MLAPI_CHANNELS
+ public TransportChannel[] MLAPI_CHANNELS
44
{
45
get
46
47
if (_channelsCache == null)
48
49
List<TransportChannel> channels = new List<TransportChannel>();
50
51
- OnChannelRegistration(channels);
+ if (OnChannelRegistration != null)
52
+ {
53
+ OnChannelRegistration(channels);
54
+ }
55
56
_channelsCache = new TransportChannel[MLAPI_INTERNAL_CHANNELS.Length + channels.Count];
57
0 commit comments