Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
ARSnova
arsnova-click-v2-backend
Commits
6e725ace
Commit
6e725ace
authored
Sep 02, 2019
by
Christopher Mark Fullarton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Initializes the quiz state interval checker if the state is changed from inactive
parent
65666218
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
src/entities/quiz/QuizEntity.ts
src/entities/quiz/QuizEntity.ts
+7
-0
No files found.
src/entities/quiz/QuizEntity.ts
View file @
6e725ace
...
...
@@ -78,6 +78,13 @@ export class QuizEntity extends AbstractEntity implements IQuizEntity {
}
set
state
(
value
:
QuizState
)
{
if
(
this
.
_state
===
QuizState
.
Inactive
&&
value
!==
QuizState
.
Inactive
)
{
clearInterval
(
this
.
_dropEmptyQuizSettings
.
intervalInstance
);
this
.
_dropEmptyQuizSettings
.
intervalInstance
=
setInterval
(()
=>
{
this
.
checkExistingConnection
();
},
this
.
_dropEmptyQuizSettings
.
interval
);
}
this
.
_state
=
value
;
}
...
...
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