Your environment.
Version:
github.com/pion/rtp v1.5.5
github.com/pion/webrtc/v2 v2.2.15
Browser: N/A
Other Information -
What did you do?
Turned on debug logging at the TRACE level.
ENV setting:
PION_LOG_TRACE=all
What did you expect?
For the program to run as before, only with logging.
What happened?
When the connection was shutdown by the remote side, the logger crashed Pion.
It looks like the String() function in the candidatepair.go file assumes that 'p' will not be nil. But I think one part went away as the remote connection died.

There is other code that checks whether p is nil before continuing in that same file. Seems an easy fix.
--Tom