Commit 890b7f7
committed
Always sleep while restarting
The /services/server/control/restart endpoint does not stop the API
immediately. As a result, a login() call may still succeed just before
the restart takes effect. This change introduces an additional sleep
to prevent a burst of requests from reaching the server while it is
in the process of restarting.1 parent 27af330 commit 890b7f7
1 file changed
+9
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
618 | 618 | | |
619 | 619 | | |
620 | 620 | | |
621 | | - | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
622 | 630 | | |
623 | 631 | | |
624 | 632 | | |
| |||
0 commit comments