Archived
2
0

fix indentation.

This commit is contained in:
m1k1o 2021-03-01 14:31:16 +01:00
parent 6e2b5084e7
commit 377ecd7d06

View File

@ -169,8 +169,8 @@ func (manager *WebRTCManager) CreatePeer(id string, session types.Session) (stri
connection.OnConnectionStateChange(func(state webrtc.PeerConnectionState) { connection.OnConnectionStateChange(func(state webrtc.PeerConnectionState) {
switch state { switch state {
case webrtc.PeerConnectionStateDisconnected: case webrtc.PeerConnectionStateDisconnected:
manager.logger.Info().Str("id", id).Msg("peer disconnected") manager.logger.Info().Str("id", id).Msg("peer disconnected")
manager.sessions.Destroy(id) manager.sessions.Destroy(id)
case webrtc.PeerConnectionStateFailed: case webrtc.PeerConnectionStateFailed:
manager.logger.Info().Str("id", id).Msg("peer failed") manager.logger.Info().Str("id", id).Msg("peer failed")
manager.sessions.Destroy(id) manager.sessions.Destroy(id)