Dont send server logs if server is not running
This commit is contained in:
parent
64f477f423
commit
806afc6ed6
|
@ -155,6 +155,10 @@ func (wsh *WebsocketHandler) HandleInbound(m WebsocketMessage) error {
|
|||
}
|
||||
case SendServerLogsEvent:
|
||||
{
|
||||
if running, _ := wsh.Server.Environment.IsRunning(); !running {
|
||||
return nil
|
||||
}
|
||||
|
||||
logs, err := wsh.Server.Environment.Readlog(1024 * 16)
|
||||
if err != nil {
|
||||
return err
|
||||
|
|
Loading…
Reference in New Issue
Block a user