1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-12-22 10:37:59 +01:00

Add note about AdHocCommandManager's session sweeping

This commit is contained in:
Florian Schmaus 2015-01-05 20:17:51 +01:00
parent 9c2f6dcfbc
commit f78a615d09

View file

@ -121,6 +121,10 @@ public class AdHocCommandManager extends Manager {
/**
* Thread that reaps stale sessions.
*/
// FIXME The session sweeping is horrible implemented. The thread will never stop running. A different approach must
// be implemented. For example one that does stop reaping sessions and the thread if there are no more, and restarts
// the reaping process on demand. Or for every command a scheduled task should be created that removes the session
// if it's timed out. See SMACK-624.
private Thread sessionsSweeper;
private AdHocCommandManager(XMPPConnection connection) {