mirror of
https://github.com/m1k1o/neko.git
synced 2025-05-25 23:17:12 +02:00
Temporary websocket disconnect handling (#6)
* fix websocket close log error. * logger session interface no pointer. * websocket delayet disconnect. * session host: save id not pointer to a session. * fix if hostId not stored.
This commit is contained in:
parent
5612b80634
commit
691150900b
9 changed files with 122 additions and 61 deletions
|
@ -13,8 +13,8 @@ func (manager *WebSocketManagerCtx) fileChooserDialogEvents() {
|
|||
manager.desktop.OnFileChooserDialogOpened(func() {
|
||||
manager.logger.Info().Msg("file chooser dialog opened")
|
||||
|
||||
host := manager.sessions.GetHost()
|
||||
if host == nil {
|
||||
host, hasHost := manager.sessions.GetHost()
|
||||
if !hasHost {
|
||||
manager.logger.Warn().Msg("no host for file chooser dialog found, closing")
|
||||
go manager.desktop.CloseFileChooserDialog()
|
||||
return
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue