Commit 0570d00e authored by Alex Wenckus's avatar Alex Wenckus Committed by alex

Bug in offline message flood check. JM-842

git-svn-id: http://svn.igniterealtime.org/svn/repos/wildfire/trunk@5467 b35dd754-fafc-0310-a699-88a17e54d16e
parent 4be16247
......@@ -595,7 +595,11 @@ public class ClientSession extends Session {
* becomes online.
*/
public boolean canFloodOfflineMessages() {
for (ClientSession session : sessionManager.getSessions()) {
if(offlineFloodStopped) {
return false;
}
String username = getAddress().getNode();
for (ClientSession session : sessionManager.getSessions(username)) {
if (session.isOfflineFloodStopped()) {
return false;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment