Commit 6535cccb authored by Christopher Fullarton's avatar Christopher Fullarton

Fixes deleting exchanges

parent 8aac6a76
......@@ -212,7 +212,10 @@ export class QuizEntity extends AbstractEntity implements IQuizEntity {
status: StatusProtocol.Success,
step: MessageProtocol.Closed,
})));
AMQPConnector.channel.deleteExchange(this._exchangeName).catch(() => {});
try {
AMQPConnector.channel.checkExchange(this._exchangeName).then(() => AMQPConnector.channel.deleteExchange(this._exchangeName));
} catch {
}
}
public reset(): void {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment