Skip to content

Commit 596a1b1

Browse files
authored
Merge pull request #899 from HubSpot/fix-interrupt
Use isInterrupted() to not clear the current thread's interrupted status
2 parents fc1a462 + 2becb34 commit 596a1b1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • src/main/java/com/hubspot/jinjava/tree

src/main/java/com/hubspot/jinjava/tree/Node.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public void preProcess(JinjavaInterpreter interpreter) {
105105
}
106106

107107
public final void checkForInterrupt() {
108-
if (Thread.interrupted()) {
108+
if (Thread.currentThread().isInterrupted()) {
109109
throw new InterpretException(
110110
"Interrupt rendering " + getClass(),
111111
master.getLineNumber(),

0 commit comments

Comments
 (0)