Skip to content

Commit

Permalink
Resolve #545 Android fix QueryLoader closing previous result
Browse files Browse the repository at this point in the history
  • Loading branch information
npurushe committed May 1, 2017
1 parent 45049ab commit 542bdd0
Showing 1 changed file with 2 additions and 2 deletions.
@@ -1,5 +1,5 @@
/*
* Copyright 2016 requery.io
* Copyright 2017 requery.io
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -70,7 +70,7 @@ public void deliverResult(Result<E> data) {
if (isStarted()) {
super.deliverResult(result);
}
if (previous != null) {
if (previous != null && previous != data) {
previous.close();
}
}
Expand Down

0 comments on commit 542bdd0

Please sign in to comment.