summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Presence/DNSCache.hs2
1 files changed, 2 insertions, 0 deletions
diff --git a/Presence/DNSCache.hs b/Presence/DNSCache.hs
index 854aa6c3..d6d7ce2f 100644
--- a/Presence/DNSCache.hs
+++ b/Presence/DNSCache.hs
@@ -146,6 +146,7 @@ rawReverseResolve dns fail timeout addr = do
146 146
147expiredReverse dns addr = do 147expiredReverse dns addr = do
148 utc <- getCurrentTime 148 utc <- getCurrentTime
149 addr <- return $ addr `withPort` 0
149 es <- atomically $ do 150 es <- atomically $ do
150 r <- readTVar $ rcache dns 151 r <- readTVar $ rcache dns
151 let ns = maybe [] id $ Map.lookup addr r 152 let ns = maybe [] id $ Map.lookup addr r
@@ -164,6 +165,7 @@ expiredReverse dns addr = do
164 165
165cachedReverse dns addr = do 166cachedReverse dns addr = do
166 utc <- getCurrentTime 167 utc <- getCurrentTime
168 addr <- return $ addr `withPort` 0
167 atomically $ do 169 atomically $ do
168 r <- readTVar (rcache dns) 170 r <- readTVar (rcache dns)
169 let ns = maybe [] id $ Map.lookup addr r 171 let ns = maybe [] id $ Map.lookup addr r