mirror of
https://github.com/fergalmoran/chrometophone.git
synced 2025-12-22 09:41:51 +00:00
Fix device pruning
This commit is contained in:
@@ -130,7 +130,7 @@ public class RegisterServlet extends HttpServlet {
|
||||
// unused registrations
|
||||
DeviceInfo oldest = registrations.get(0);
|
||||
if (oldest.getRegistrationTimestamp() == null) {
|
||||
pm.deletePersistent(oldest);
|
||||
reqInfo.deleteRegistration(oldest.getDeviceRegistrationID());
|
||||
} else {
|
||||
long oldestTime = oldest.getRegistrationTimestamp().getTime();
|
||||
for (int i = 1; i < registrations.size(); i++) {
|
||||
@@ -140,7 +140,7 @@ public class RegisterServlet extends HttpServlet {
|
||||
oldestTime = oldest.getRegistrationTimestamp().getTime();
|
||||
}
|
||||
}
|
||||
pm.deletePersistent(oldest);
|
||||
reqInfo.deleteRegistration(oldest.getDeviceRegistrationID());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
-->
|
||||
<appengine-web-app xmlns="http://appengine.google.com/ns/1.0">
|
||||
<application>chrometophone</application>
|
||||
<version>10</version>
|
||||
<version>11</version>
|
||||
<system-properties>
|
||||
<property name="java.util.logging.config.file" value="WEB-INF/logging.properties"/>
|
||||
</system-properties>
|
||||
|
||||
Reference in New Issue
Block a user