Remove pointless try/catch

This commit is contained in:
Shaun Bennett 2016-08-13 01:39:56 -05:00
parent c99a23d670
commit 0f4f1a3582

View File

@ -48,16 +48,7 @@ public class AntiSpamManager extends MiniPlugin
String message = event.getMessage(); String message = event.getMessage();
ChatPayload payload = new ChatPayload(player.getName(), player.getUniqueId().toString(), _region, _serverName, message, System.currentTimeMillis()); ChatPayload payload = new ChatPayload(player.getName(), player.getUniqueId().toString(), _region, _serverName, message, System.currentTimeMillis());
// Run our API call async to the chat message (prevents blocking chat message) // Run our API call async to the chat message (prevents blocking chat message)
runAsync(() -> { runAsync(() -> _repository.logMessage(_pluginName, payload));
try
{
_repository.logMessage(_pluginName, payload);
}
catch (Exception ex)
{
System.out.println("Failed to send chat payload to AntiSpam repo. Ignoring!");
}
});
} }
} }
} }