Skip to content

Commit

Permalink
Always update last received time.
Browse files Browse the repository at this point in the history
  • Loading branch information
asofold committed Nov 16, 2015
1 parent 7286df5 commit 0f1a534
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -76,15 +76,15 @@ public void onPacketReceiving(final PacketEvent event) {
}

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.
Expand Down

0 comments on commit 0f1a534

Please sign in to comment.