router(transfer): decrease WaitForStop timeout

This commit is contained in:
Matthew Penner 2023-01-24 12:34:05 -07:00
parent 14eea3b1e4
commit 6e0c095bb8
No known key found for this signature in database

View File

@ -63,10 +63,10 @@ func postServerTransfer(c *gin.Context) {
if s.Environment.State() != environment.ProcessOfflineState {
if err := s.Environment.WaitForStop(
s.Context(),
time.Minute,
time.Second*15,
false,
); err != nil && !strings.Contains(strings.ToLower(err.Error()), "no such container") {
notifyPanelOfFailure()
s.SetTransferring(false)
s.Log().WithError(err).Error("failed to stop server for transfer")
return
}