mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🐛 Can't switch workspaces on mobile https://github.com/siyuan-note/siyuan/issues/16544
Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
parent
444b38aa26
commit
00d00b54ef
6 changed files with 24 additions and 23 deletions
|
|
@ -18,6 +18,7 @@ package server
|
|||
|
||||
import (
|
||||
"bytes"
|
||||
"errors"
|
||||
"fmt"
|
||||
"html/template"
|
||||
"mime"
|
||||
|
|
@ -222,6 +223,10 @@ func Serve(fastMode bool) {
|
|||
}
|
||||
|
||||
if err = util.HttpServer.Serve(ln); err != nil {
|
||||
if errors.Is(err, http.ErrServerClosed) {
|
||||
return
|
||||
}
|
||||
|
||||
if !fastMode {
|
||||
logging.LogErrorf("boot kernel failed: %s", err)
|
||||
os.Exit(logging.ExitCodeUnavailablePort)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue