Skip to content

Commit

Permalink
Add finally clause to send complete in CTMainThread
Browse files Browse the repository at this point in the history
  • Loading branch information
nickbattle committed Dec 20, 2021
1 parent 463bc70 commit 7ad96f2
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
import java.util.Vector;

import com.fujitsu.vdmj.debug.DebugLink;
import com.fujitsu.vdmj.debug.DebugReason;
import com.fujitsu.vdmj.in.statements.INStatement;
import com.fujitsu.vdmj.in.traces.INTraceVariableStatement;
import com.fujitsu.vdmj.lex.LexLocation;
Expand Down Expand Up @@ -161,6 +162,13 @@ public void body()
result.add(Verdict.FAILED);
}
}
finally
{
if (debug)
{
DebugLink.getInstance().complete(DebugReason.OK, null);
}
}
}

@Override
Expand Down

0 comments on commit 7ad96f2

Please sign in to comment.