mirror of https://github.com/portainer/portainer
sleep before close to allow user to see the error msg
parent
cd5f342da0
commit
c9d91008f8
|
@ -102,7 +102,10 @@ func (handler *Handler) handleExecRequest(w http.ResponseWriter, r *http.Request
|
|||
if err != nil {
|
||||
return err
|
||||
}
|
||||
defer websocketConn.Close()
|
||||
defer func() {
|
||||
time.Sleep(10 * time.Second)
|
||||
websocketConn.Close()
|
||||
}()
|
||||
|
||||
return hijackExecStartOperation(websocketConn, params.endpoint, params.ID, tokenData.Token)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue