透传消息如果是超过一小时不在线就不需要发送了
This commit is contained in:
@@ -344,6 +344,10 @@ public class MessagesPublisher {
|
|||||||
Collection<Session> sessions = m_sessionsStore.sessionForUser(user);
|
Collection<Session> sessions = m_sessionsStore.sessionForUser(user);
|
||||||
|
|
||||||
for (Session targetSession : sessions) {
|
for (Session targetSession : sessions) {
|
||||||
|
if(System.currentTimeMillis() - targetSession.getLastActiveTime() > 60 * 60 * 1000) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
if (targetSession.getClientID() == null) {
|
if (targetSession.getClientID() == null) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user