Fix database reference leak

This commit is contained in:
Cameron Gutman 2015-03-29 23:06:32 -04:00
parent 1148e0163c
commit b5ba59b413

View File

@ -81,6 +81,7 @@ public class ComputerManagerService extends Service {
if (!pollComputer(details)) { if (!pollComputer(details)) {
if (!newPc && offlineCount < OFFLINE_POLL_TRIES) { if (!newPc && offlineCount < OFFLINE_POLL_TRIES) {
// Return without calling the listener // Return without calling the listener
releaseLocalDatabaseReference();
return false; return false;
} }