deregister observability function when participant is closed (#4157)
* deregister observability function when participant is closed * tidy
This commit is contained in:
@@ -404,7 +404,7 @@ func NewParticipant(params ParticipantParams) (*ParticipantImpl, error) {
|
|||||||
tx.ReportDuration(uint16(millis))
|
tx.ReportDuration(uint16(millis))
|
||||||
tx.ReportDurationMinutes(uint8(mins))
|
tx.ReportDurationMinutes(uint8(mins))
|
||||||
|
|
||||||
return !p.IsDisconnected()
|
return !p.IsClosed()
|
||||||
})
|
})
|
||||||
|
|
||||||
var err error
|
var err error
|
||||||
|
|||||||
Reference in New Issue
Block a user