mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
print a message when unable to send event
Signed-off-by: Jamin W. Collins <jamin.collins@gmail.com>
This commit is contained in:
@@ -20,7 +20,11 @@ public final class RemoteClient implements IToClient {
|
||||
@Override
|
||||
public void send(final NetEvent event) {
|
||||
System.out.println("Sending event " + event + " to " + channel);
|
||||
channel.writeAndFlush(event);
|
||||
try {
|
||||
channel.writeAndFlush(event).sync();
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user