[FIX] Error when websocket received status update event (#17089)

pull/17128/head
Douglas Gubert 6 years ago committed by GitHub
parent 6776b0e6ae
commit b0c2cbb2d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      app/apps/server/communication/websockets.js

@ -41,7 +41,7 @@ export class AppServerListener {
async onAppStatusUpdated({ appId, status }) {
const app = this.orch.getManager().getOneById(appId);
if (app.getStatus() === status) {
if (!app || app.getStatus() === status) {
return;
}

Loading…
Cancel
Save