Skip to content

Commit

Permalink
[rxrepo-core] Fixing live queries scheduling
Browse files Browse the repository at this point in the history
  • Loading branch information
denis-itskovich committed Jul 2, 2019
1 parent b331817 commit 009a717
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,7 @@ public Observable<Notification<PropertyResolver>> executeLiveQuery(SqlStatement
Optional.ofNullable(res.newResult())
.map(or -> OResultPropertyResolver.create(OrientDbSessionProvider.create(res::database), or))
.orElse(null)))
.takeUntil(shutdown.andThen(Observable.just(0)))
.observeOn(scheduler);
.takeUntil(shutdown.andThen(Observable.just(0)));
}

private Observable<PropertyResolver> toObservable(Function<ODatabaseDocument, OResultSet> resultSetSupplier) {
Expand Down

0 comments on commit 009a717

Please sign in to comment.