mirror of
https://github.com/tulir/gomuks.git
synced 2025-04-20 10:33:41 -05:00
main: don't stop server if it wasn't started
This commit is contained in:
parent
f3da677565
commit
1e347a4c00
1 changed files with 5 additions and 3 deletions
|
@ -217,11 +217,13 @@ func (gmx *Gomuks) DirectStop() {
|
|||
closer(websocket.StatusServiceRestart, "Server shutting down")
|
||||
}
|
||||
gmx.Client.Stop()
|
||||
if gmx.Server != nil {
|
||||
err := gmx.Server.Close()
|
||||
if err != nil {
|
||||
gmx.Log.Error().Err(err).Msg("Failed to close server")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func (gmx *Gomuks) Run() {
|
||||
gmx.InitDirectories()
|
||||
|
|
Loading…
Add table
Reference in a new issue