diff options
Diffstat (limited to 'juick-notifications/src/main/java/com/juick/components/service')
-rw-r--r-- | juick-notifications/src/main/java/com/juick/components/service/JuickServerReconnectManager.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/juick-notifications/src/main/java/com/juick/components/service/JuickServerReconnectManager.java b/juick-notifications/src/main/java/com/juick/components/service/JuickServerReconnectManager.java index f83a3aa0..1f19eec9 100644 --- a/juick-notifications/src/main/java/com/juick/components/service/JuickServerReconnectManager.java +++ b/juick-notifications/src/main/java/com/juick/components/service/JuickServerReconnectManager.java @@ -7,6 +7,7 @@ import org.springframework.context.ApplicationListener; import org.springframework.stereotype.Component; import org.springframework.web.socket.client.WebSocketConnectionManager; +import javax.annotation.Nonnull; import javax.inject.Inject; @Component @@ -15,7 +16,7 @@ public class JuickServerReconnectManager implements ApplicationListener<Disconne @Inject private WebSocketConnectionManager webSocketConnectionManager; @Override - public void onApplicationEvent(DisconnectedEvent event) { + public void onApplicationEvent(@Nonnull DisconnectedEvent event) { logger.info("retrying..."); webSocketConnectionManager.stop(); webSocketConnectionManager.start(); |