Skip to content

Commit

Permalink
fix: added sessionServiceProvider to tray component stop
Browse files Browse the repository at this point in the history
  • Loading branch information
urz9999 committed Jul 14, 2021
1 parent f098694 commit 975ff5b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@
"synopsis": "Leapp Client is a tool that allows the user to obtain secure, temporary and refreshable credentials to access AWS Services with AWS CLI and tools based on it",
"description": "Leapp Client is a tool that allows the user to obtain secure, temporary and refreshable credentials to access AWS Services with AWS CLI and tools based on it, with versioning tools that work with AWS CodeCommit service and to easily use AWS SDK from your local environment during your everyday development.",
"icon": "src/assets/icons/1024x1024.png",

"desktop": {
"Icon": "/usr/share/icons/hicolor/0x0/apps/leapp.png"
},
Expand Down
3 changes: 2 additions & 1 deletion src/app/components/shared/tray-menu/tray-menu.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,8 @@ export class TrayMenuComponent implements OnInit, OnDestroy {
// Stop the sessions...
const activeSessions = this.sessionService.listActive();
activeSessions.forEach(sess => {
this.sessionService.stop(sess.sessionId);
const factorizedService = this.sessionProviderService.getService(sess.type);
factorizedService.stop(sess.sessionId);
});

// Clean the config file
Expand Down

0 comments on commit 975ff5b

Please sign in to comment.