Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/dev' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Vanessa219 committed Feb 25, 2024
2 parents 1cf8b22 + 1f22ee3 commit eb5124b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions kernel/model/conf.go
Original file line number Diff line number Diff line change
Expand Up @@ -1011,11 +1011,20 @@ func closeUserGuide() {
}

msgId := util.PushMsg(Conf.language(233), 30000)
evt := util.NewCmdResult("unmount", 0, util.PushModeBroadcast)
evt.Data = map[string]interface{}{
"box": boxID,
}
util.PushEvent(evt)

unindex(boxID)

if removeErr := filelock.Remove(boxDirPath); nil != removeErr {
logging.LogErrorf("remove corrupted user guide box [%s] failed: %s", boxDirPath, removeErr)
}

sql.WaitForWritingDatabase()

util.PushClearMsg(msgId)
logging.LogInfof("closed user guide box [%s]", boxID)
}
Expand Down

0 comments on commit eb5124b

Please sign in to comment.