Skip to content

Commit

Permalink
Fixed test
Browse files Browse the repository at this point in the history
  • Loading branch information
vitalidze committed Sep 30, 2015
1 parent 1febd39 commit fd317df
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/org/traccar/web/shared/model/User.java
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,9 @@ public int getNumberOfDevicesToDistribute() {
User manager = this;
while (maxNumberOfDevices == null && manager != null) {
maxNumberOfDevices = manager.getMaxNumOfDevices();
manager = manager.getManagedBy();
if (maxNumberOfDevices == null) {
manager = manager.getManagedBy();
}
}
if (maxNumberOfDevices == null) {
return Integer.MAX_VALUE;
Expand Down

0 comments on commit fd317df

Please sign in to comment.