code indentation.

This commit is contained in:
Miroslav Šedivý 2020-11-16 17:48:10 +01:00
parent 234b0a2e06
commit b411675108
2 changed files with 13 additions and 11 deletions

View File

@ -17,7 +17,8 @@ func (h *MessageHandlerCtx) screenSet(session types.Session, payload *message.Sc
return err
}
if err := h.sessions.Broadcast(message.ScreenResolution{
if err := h.sessions.Broadcast(
message.ScreenResolution{
Event: event.SCREEN_RESOLUTION,
ID: session.ID(),
Width: payload.Width,

View File

@ -85,7 +85,8 @@ func (h *MessageHandlerCtx) SessionDisconnected(session types.Session) error {
// clear host if exists
if session.IsHost() {
h.sessions.ClearHost()
if err := h.sessions.Broadcast(message.Control{
if err := h.sessions.Broadcast(
message.Control{
Event: event.CONTROL_RELEASE,
ID: session.ID(),
}, nil); err != nil {