fix: app stopped status (#3723)
This commit is contained in:
		
							parent
							
								
									368036923f
								
							
						
					
					
						commit
						6665aca695
					
				@ -334,7 +334,7 @@ export class Gateway extends EventEmitter {
 | 
				
			|||||||
        from: 'node',
 | 
					        from: 'node',
 | 
				
			||||||
      })
 | 
					      })
 | 
				
			||||||
      .then(async () => {
 | 
					      .then(async () => {
 | 
				
			||||||
        if (!(await mainApp.isStarted())) {
 | 
					        if (!isStart && !(await mainApp.isStarted())) {
 | 
				
			||||||
          await mainApp.stop({ logging: false });
 | 
					          await mainApp.stop({ logging: false });
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
      })
 | 
					      })
 | 
				
			||||||
@ -342,7 +342,7 @@ export class Gateway extends EventEmitter {
 | 
				
			|||||||
        if (e.code !== 'commander.helpDisplayed') {
 | 
					        if (e.code !== 'commander.helpDisplayed') {
 | 
				
			||||||
          mainApp.log.error(e);
 | 
					          mainApp.log.error(e);
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        if (!(await mainApp.isStarted())) {
 | 
					        if (!isStart && !(await mainApp.isStarted())) {
 | 
				
			||||||
          await mainApp.stop({ logging: false });
 | 
					          await mainApp.stop({ logging: false });
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
      });
 | 
					      });
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user