Skip to content

Commit

Permalink
fix udpserver bug
Browse files Browse the repository at this point in the history
  • Loading branch information
spacemeowx2 committed Sep 7, 2018
1 parent 39cc636 commit 3113d8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/udpserver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ interface CacheItem {
function clearCacheItem<T> (map: Map<T, CacheItem>) {
const now = Date.now()
for (const [key, {expireAt}] of map) {
if (expireAt >= now) {
if (expireAt < now) {
map.delete(key)
}
}
Expand Down

0 comments on commit 3113d8d

Please sign in to comment.