Skip to content

Commit

Permalink
fix order of code
Browse files Browse the repository at this point in the history
  • Loading branch information
ImUrX committed Nov 28, 2023
1 parent e375a64 commit b5b61f0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -250,14 +250,14 @@ class TrackersUDPServer(private val port: Int, name: String, private val tracker
LogManager.info("[TrackerServer] Tracker timed out: $conn")
}
} else {
conn.timedOut = false
for (value in conn.trackers.values) {
if (value.status == TrackerStatus.DISCONNECTED ||
value.status == TrackerStatus.TIMED_OUT
) {
value.status = TrackerStatus.OK
}
}
conn.timedOut = false
}

if (conn.serialBuffer.isNotEmpty() &&
Expand Down

0 comments on commit b5b61f0

Please sign in to comment.