mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
code indentation.
This commit is contained in:
parent
234b0a2e06
commit
b411675108
@ -17,7 +17,8 @@ func (h *MessageHandlerCtx) screenSet(session types.Session, payload *message.Sc
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
if err := h.sessions.Broadcast(message.ScreenResolution{
|
if err := h.sessions.Broadcast(
|
||||||
|
message.ScreenResolution{
|
||||||
Event: event.SCREEN_RESOLUTION,
|
Event: event.SCREEN_RESOLUTION,
|
||||||
ID: session.ID(),
|
ID: session.ID(),
|
||||||
Width: payload.Width,
|
Width: payload.Width,
|
||||||
|
@ -85,7 +85,8 @@ func (h *MessageHandlerCtx) SessionDisconnected(session types.Session) error {
|
|||||||
// clear host if exists
|
// clear host if exists
|
||||||
if session.IsHost() {
|
if session.IsHost() {
|
||||||
h.sessions.ClearHost()
|
h.sessions.ClearHost()
|
||||||
if err := h.sessions.Broadcast(message.Control{
|
if err := h.sessions.Broadcast(
|
||||||
|
message.Control{
|
||||||
Event: event.CONTROL_RELEASE,
|
Event: event.CONTROL_RELEASE,
|
||||||
ID: session.ID(),
|
ID: session.ID(),
|
||||||
}, nil); err != nil {
|
}, nil); err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user