Fix location estimation on Windows

Also, switch to a better Portal Test IP.
This commit is contained in:
Daniel
2020-08-10 23:13:02 +02:00
parent 633bb34288
commit b9f011fa37
7 changed files with 206 additions and 64 deletions

View File

@@ -75,7 +75,10 @@ func cleanConnections() (activePIDs map[int]struct{}) {
if !exists {
// Step 2: mark end
conn.Ended = nowUnix
conn.Save()
if conn.KeyIsSet() {
// Be absolutely sure that we have a key set here, else conn.Save() will deadlock.
conn.Save()
}
}
case conn.Ended < deleteOlderThan:
// Step 3: delete