fix: Fixed problem when disconnecting the instance it removes the instance

This commit is contained in:
Davidson Gomes 2023-07-04 14:27:38 -03:00
parent c4f39ab85c
commit 870968a7c5
2 changed files with 1 additions and 1 deletions

View File

@ -7,6 +7,7 @@
* Change in the way the api sent and saved the sent messages, now it goes in the messages.upsert event
* Fixed cash when sending stickers via url
* Improved how Redis works for instances
* Fixed problem when disconnecting the instance it removes the instance
# 1.1.2 (2023-06-28 13:43)

View File

@ -409,7 +409,6 @@ export class WAStartupService {
instance: this.instance.name,
status: 'removed',
});
this.eventEmitter.emit('remove.instance', this.instance.name, 'inner');
this.client?.ws?.close();
this.client.end(new Error('Close connection'));
}