Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
arsnova-click-v2-backend
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
ARSnova
arsnova-click-v2-backend
Commits
3ebd7e09
Commit
3ebd7e09
authored
Sep 08, 2019
by
Christopher Mark Fullarton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adds checks if the amqp channel has an error
parent
6535cccb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
src/db/AMQPConnector.ts
src/db/AMQPConnector.ts
+3
-0
src/entities/quiz/QuizEntity.ts
src/entities/quiz/QuizEntity.ts
+1
-4
No files found.
src/db/AMQPConnector.ts
View file @
3ebd7e09
...
...
@@ -32,6 +32,9 @@ class AMQPConnector {
vhost
:
settings
.
amqp
.
vhost
,
});
this
.
_channel
=
await
this
.
_connection
.
createChannel
();
this
.
_channel
.
on
(
'
error
'
,
error
=>
{
console
.
error
(
'
Exception in amqp channel occured
'
,
error
);
});
}
}
...
...
src/entities/quiz/QuizEntity.ts
View file @
3ebd7e09
...
...
@@ -212,10 +212,7 @@ export class QuizEntity extends AbstractEntity implements IQuizEntity {
status
:
StatusProtocol
.
Success
,
step
:
MessageProtocol
.
Closed
,
})));
try
{
AMQPConnector
.
channel
.
checkExchange
(
this
.
_exchangeName
).
then
(()
=>
AMQPConnector
.
channel
.
deleteExchange
(
this
.
_exchangeName
));
}
catch
{
}
AMQPConnector
.
channel
.
deleteExchange
(
this
.
_exchangeName
);
}
public
reset
():
void
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment