File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ export async function createLocalStackStatusTracker(
3737 } ;
3838
3939 const deriveStatus = ( ) => {
40- const newStatus = getLocalStackStatus ( containerStatus , healthCheck ) ;
40+ const newStatus = getLocalStackStatus ( containerStatus , healthCheck , status ) ;
4141 setStatus ( newStatus ) ;
4242 } ;
4343
@@ -85,11 +85,15 @@ export async function createLocalStackStatusTracker(
8585function getLocalStackStatus (
8686 containerStatus : ContainerStatus | undefined ,
8787 healthCheck : boolean | undefined ,
88+ previousStatus ?: LocalStackStatus ,
8889) : LocalStackStatus {
8990 if ( containerStatus === "running" ) {
9091 if ( healthCheck === true ) {
9192 return "running" ;
9293 } else {
94+ if ( previousStatus === "running" || previousStatus === "stopping" ) {
95+ return "stopping" ;
96+ }
9397 return "starting" ;
9498 }
9599 } else if ( containerStatus === "stopping" ) {
You can’t perform that action at this time.
0 commit comments