Always update last received time.

This commit is contained in:
asofold 2015-11-16 09:57:01 +01:00
parent 7286df5875
commit 0f1a5345f8

View File

@ -76,15 +76,15 @@ public class FlyingFrequency extends BaseAdapter {
}
final NetConfig cc = configFactory.getConfig(player.getWorld());
// Always update last received time.
final NetData data = dataFactory.getData(player);
data.lastKeepAliveTime = time; // Update without much of a contract.
if (!cc.flyingFrequencyActive) {
return;
}
counters.add(idHandled, 1);
final NetData data = dataFactory.getData(player);
data.lastKeepAliveTime = time; // Update without much of a contract.
final boolean primaryThread = !event.isAsync();
if (!primaryThread) {
// Count all asynchronous events.