Skip to content

Commit

Permalink
minor refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
cornerman committed Nov 8, 2023
1 parent de02047 commit 6021446
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions reactive/src/main/scala/colibri/reactive/Reactive.scala
Original file line number Diff line number Diff line change
Expand Up @@ -189,12 +189,9 @@ object Rx extends RxPlatform {
.subscribing(owner.liveObservable.dropSyncAll.head.via(subject))
.tapCancel(owner.cancelable.unsafeCancel)
} catch {
case NonFatal(t) =>
owner.cancelable.unsafeCancel()
Observable.raiseError(t)
case t: Throwable =>
owner.cancelable.unsafeCancel()
throw t
case NonFatal(t) => Observable.raiseError(t)
} finally {
owner.cancelable.unsafeCancel()
}
}

Expand Down

0 comments on commit 6021446

Please sign in to comment.