Skip to content
This repository was archived by the owner on May 14, 2018. It is now read-only.

Commit eb7c5d1

Browse files
author
Andrey Kurilov
committed
v1.1.5: resumable coroutines
1 parent a3df9e6 commit eb7c5d1

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ allprojects {
1111
apply plugin: "maven"
1212
apply plugin: "signing"
1313
group = "com.github.akurilov"
14-
version = "1.1.4"
14+
version = "1.1.5"
1515
}
1616

1717
tasks.withType(JavaCompile) {

src/main/java/com/github/akurilov/concurrent/AsyncRunnableBase.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,9 +137,11 @@ public void close()
137137
}
138138
// then close actually
139139
synchronized(state) {
140-
doClose();
141-
stateRef.set(null);
142-
state.notifyAll();
140+
if(null != stateRef.get()) {
141+
doClose();
142+
stateRef.set(null);
143+
state.notifyAll();
144+
}
143145
}
144146
}
145147

0 commit comments

Comments
 (0)