Browse Source

actualise syncdevice id in syncinfo

Julien Clauter 9 years ago
parent
commit
6272a1ba47

+ 1 - 0
src/de/tudarmstadt/informatik/hostage/persistence/HostageDBOpenHelper.java

@@ -1062,6 +1062,7 @@ public class HostageDBOpenHelper extends SQLiteOpenHelper {
         for (SyncDevice device : devices){
             deviceMap.put(device.getDeviceID(), device.getHighest_attack_id());
         }
+        deviceMap.put(SyncDevice.currentDevice().getDeviceID(), SyncDevice.currentDevice().getHighest_attack_id());
         SyncInfo syncInfo = new SyncInfo();
         syncInfo.deviceMap  = deviceMap;
         syncInfo.bssids = this.getAllBSSIDS();