We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b663a1d commit 56d1ff6Copy full SHA for 56d1ff6
language-adaptors/rxjava-scala/src/main/scala/rx/lang/scala/Subscription.scala
@@ -64,7 +64,7 @@ object Subscription {
64
def isUnsubscribed = unsubscribed.get()
65
66
val asJavaSubscription = new rx.Subscription {
67
- def unsubscribe() { u; unsubscribed.set(true) }
+ def unsubscribe() { if(unsubscribed.get()) { u ; unsubscribed.set(true) }}
68
}
69
70
0 commit comments