diff options
author | Vitaly Takmazov | 2018-03-30 14:18:56 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2018-03-30 14:18:56 +0300 |
commit | a746598faef08af794c66d65ba9324bee5043b73 (patch) | |
tree | eff6bd472547df069b3fcbd3da2e29f750d58626 /juick-server/src/main/java/com/juick/server/MessengerManager.java | |
parent | 42e2a727c2bc15ac15c9a3af66f126dbefe508a2 (diff) |
server: process everything in one place
Diffstat (limited to 'juick-server/src/main/java/com/juick/server/MessengerManager.java')
-rw-r--r-- | juick-server/src/main/java/com/juick/server/MessengerManager.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/juick-server/src/main/java/com/juick/server/MessengerManager.java b/juick-server/src/main/java/com/juick/server/MessengerManager.java index 1fe04aca..adef1e22 100644 --- a/juick-server/src/main/java/com/juick/server/MessengerManager.java +++ b/juick-server/src/main/java/com/juick/server/MessengerManager.java @@ -96,7 +96,11 @@ public class MessengerManager implements ApplicationListener<MessageEvent> { final String text = textMessageEvent.text(); logger.info("Received text message from '{}' at '{}' with content: {} (mid: {})", senderId, timestamp, text, messageId); - serverManager.processMessage(user_from, text, null); + try { + serverManager.processMessage(user_from, text, null); + } catch (Exception e) { + logger.warn("messenger error", e); + } messengerNotify(senderId, "Message sent", null); } } |