diff options
Diffstat (limited to 'Presence/Server.hs')
-rw-r--r-- | Presence/Server.hs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Presence/Server.hs b/Presence/Server.hs index 87644946..24cd5bce 100644 --- a/Presence/Server.hs +++ b/Presence/Server.hs | |||
@@ -524,6 +524,9 @@ newConnection server params conkey u h inout = do | |||
524 | let utc' = formatTime defaultTimeLocale "%s" utc | 524 | let utc' = formatTime defaultTimeLocale "%s" utc |
525 | warn $ "TIMEOUT " <> bshow utc' <> " " <> bshow (pingIdle me, pingTimeOut me) | 525 | warn $ "TIMEOUT " <> bshow utc' <> " " <> bshow (pingIdle me, pingTimeOut me) |
526 | -} | 526 | -} |
527 | utc <- getCurrentTime | ||
528 | let utc' = formatTime defaultTimeLocale "%s" utc | ||
529 | warn $ "ping:TIMEOUT " <> bshow utc' | ||
527 | atomically (connClose newCon) | 530 | atomically (connClose newCon) |
528 | eof | 531 | eof |
529 | 532 | ||
@@ -534,6 +537,9 @@ newConnection server params conkey u h inout = do | |||
534 | let utc' = formatTime defaultTimeLocale "%s" utc | 537 | let utc' = formatTime defaultTimeLocale "%s" utc |
535 | warn $ "IDLE" <> bshow utc' <> " " <> bshow (pingIdle me, pingTimeOut me) | 538 | warn $ "IDLE" <> bshow utc' <> " " <> bshow (pingIdle me, pingTimeOut me) |
536 | -} | 539 | -} |
540 | utc <- getCurrentTime | ||
541 | let utc' = formatTime defaultTimeLocale "%s" utc | ||
542 | warn $ "ping:IDLE " <> bshow utc' | ||
537 | atomically $ announce ((conkey,u),RequiresPing) | 543 | atomically $ announce ((conkey,u),RequiresPing) |
538 | handleEOF conkey u mvar newCon | 544 | handleEOF conkey u mvar newCon |
539 | 545 | ||