fix(core): update

This commit is contained in:
2019-11-09 13:00:30 +01:00
parent e413a8116d
commit afb4e3339a
13 changed files with 123 additions and 89 deletions
+8 -6
View File
@@ -78,12 +78,14 @@ export class UniverseMessage<T> implements interfaces.IUniverseMessage {
this.destructionTimer = new Timer(selfdestructAfterArg);
this.destructionTimer.start();
// set up self destruction by removing this from the parent messageCache
this.destructionTimer.completed.then(async () => {
this.universeCache.messageMap.remove(this);
}).catch(err => {
console.log(err);
console.log(this);
});
this.destructionTimer.completed
.then(async () => {
this.universeCache.messageMap.remove(this);
})
.catch(err => {
console.log(err);
console.log(this);
});
} else {
plugins.smartdelay.delayFor(1000).then(() => {
if (!this.destructionTimer) {