Ask user before adding a contact
This commit is contained in:
@@ -74,7 +74,7 @@ public class Client implements Closeable {
|
||||
socket = new Socket(config.getServer(), config.getPort());
|
||||
logger.fine("Successfully established TCP connection to server");
|
||||
|
||||
// Create message receiver
|
||||
// Create object receiver
|
||||
receiver = new Receiver(socket.getInputStream());
|
||||
|
||||
// Register user creation processor, contact list processor and message cache
|
||||
@@ -108,7 +108,7 @@ public class Client implements Closeable {
|
||||
|
||||
online = true;
|
||||
|
||||
// Remove user creation processor
|
||||
// Remove all processors as they are only used during the handshake
|
||||
receiver.removeAllProcessors();
|
||||
|
||||
logger.info("Handshake completed.");
|
||||
|
Reference in New Issue
Block a user