send screen resolution after SessionConnected
This commit is contained in:
parent
ca0b5b2d35
commit
fe90a9555f
@ -12,11 +12,6 @@ func (h *MessageHandler) SessionCreated(id string, session types.Session) error
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
// send screen current resolution
|
|
||||||
if err := h.screenResolution(id, session); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
|
|
||||||
if session.Admin() {
|
if session.Admin() {
|
||||||
// send screen configurations if admin
|
// send screen configurations if admin
|
||||||
if err := h.screenConfigurations(id, session); err != nil {
|
if err := h.screenConfigurations(id, session); err != nil {
|
||||||
@ -37,6 +32,11 @@ func (h *MessageHandler) SessionConnected(id string, session types.Session) erro
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// send screen current resolution
|
||||||
|
if err := h.screenResolution(id, session); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
// tell session there is a host
|
// tell session there is a host
|
||||||
host, ok := h.sessions.GetHost()
|
host, ok := h.sessions.GetHost()
|
||||||
if ok {
|
if ok {
|
||||||
|
Reference in New Issue
Block a user