Skip to content

Commit d704b8b

Browse files
committed
small fix digmathon service
1 parent 21c988b commit d704b8b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

ide-common/src/main/kotlin/org/digma/intellij/plugin/digmathon/DigmathonService.kt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ class DigmathonService : Disposable {
9494
//let the project load and hopefully all jcef apps
9595
delay(1.minutes.inWholeMilliseconds)
9696

97-
while (isActive) {
97+
while (isActive && digmathonInfo.get().isActive()) {
9898
try {
9999

100100
if (!isDigmathonActive.get() && digmathonInfo.get().isActive()) {
@@ -115,6 +115,10 @@ class DigmathonService : Disposable {
115115
ErrorReporter.getInstance().reportError("DigmathonService.timer", e)
116116
}
117117
}
118+
119+
if (digmathonInfo.get().isEnded()) {
120+
end()
121+
}
118122
}
119123
}
120124
}

0 commit comments

Comments
 (0)