mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
wordplay: update idle status correctly.
Fixes #505, reported by pbkracker.
This commit is contained in:
@@ -60,7 +60,7 @@ Meteor.setInterval(function () {
|
||||
var idle_threshold = now - 70*1000; // 70 sec
|
||||
var remove_threshold = now - 60*60*1000; // 1hr
|
||||
|
||||
Players.update({$lt: {last_keepalive: idle_threshold}},
|
||||
Players.update({last_keepalive: {$lt: idle_threshold}},
|
||||
{$set: {idle: true}});
|
||||
|
||||
// XXX need to deal with people coming back!
|
||||
|
||||
Reference in New Issue
Block a user