Skip to content

Commit

Permalink
ws-client: disconnect mqtt client on deleteWebSocketConnection
Browse files Browse the repository at this point in the history
  • Loading branch information
deaflynx committed Sep 4, 2024
1 parent 85d5a16 commit a3ab592
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ export class ConnectionComponent implements OnInit {
).subscribe((result) => {
if (result) {
this.webSocketConnectionService.deleteWebSocketConnection(this.connection.id).subscribe(() => {
this.mqttJsClientService.disconnectClient(this.connection);
this.connectionUpdated.emit();
this.mqttJsClientService.onConnectionsUpdated(true);
});
Expand Down

0 comments on commit a3ab592

Please sign in to comment.