Updated ConnectionIDCounter increment

This commit is contained in:
Jonathan Barrow 2021-11-21 20:59:24 -05:00
parent 35c7eb12c8
commit ba99290d66
2 changed files with 2 additions and 2 deletions

View File

@ -19,7 +19,7 @@ func register(err error, client *nex.Client, callID uint32, stationUrls []*nex.S
rmcResponseStream := nex.NewStreamOut(nexServer)
rmcResponseStream.WriteUInt32LE(0x10001) // Success
rmcResponseStream.WriteUInt32LE(uint32(secureServer.ConnectionIDCounter.Increment()))
rmcResponseStream.WriteUInt32LE(nexServer.ConnectionIDCounter().Increment())
rmcResponseStream.WriteString(localStationURL)
rmcResponseBody := rmcResponseStream.Bytes()

View File

@ -21,7 +21,7 @@ func registerEx(err error, client *nex.Client, callID uint32, stationUrls []*nex
rmcResponseStream := nex.NewStreamOut(nexServer)
rmcResponseStream.WriteUInt32LE(0x10001) // Success
rmcResponseStream.WriteUInt32LE(uint32(secureServer.ConnectionIDCounter.Increment()))
rmcResponseStream.WriteUInt32LE(nexServer.ConnectionIDCounter().Increment())
rmcResponseStream.WriteString(localStationURL)
rmcResponseBody := rmcResponseStream.Bytes()