fix indentation.
This commit is contained in:
parent
6e2b5084e7
commit
377ecd7d06
@ -169,8 +169,8 @@ func (manager *WebRTCManager) CreatePeer(id string, session types.Session) (stri
|
||||
connection.OnConnectionStateChange(func(state webrtc.PeerConnectionState) {
|
||||
switch state {
|
||||
case webrtc.PeerConnectionStateDisconnected:
|
||||
manager.logger.Info().Str("id", id).Msg("peer disconnected")
|
||||
manager.sessions.Destroy(id)
|
||||
manager.logger.Info().Str("id", id).Msg("peer disconnected")
|
||||
manager.sessions.Destroy(id)
|
||||
case webrtc.PeerConnectionStateFailed:
|
||||
manager.logger.Info().Str("id", id).Msg("peer failed")
|
||||
manager.sessions.Destroy(id)
|
||||
|
Reference in New Issue
Block a user