implementado quit, hay que cerrar los sockets TCP cuando terminen las cosas

This commit is contained in:
binlaab
2026-04-27 23:58:44 +02:00
parent 4e60e66926
commit c480c4a831
8 changed files with 50 additions and 16 deletions

View File

@@ -285,15 +285,16 @@ public class NFControllerLogicP2P {
/*
* TODO: Enviar señal para detener nuestro servidor de ficheros en segundo plano
*/
if (fileServer != null) {
fileServer.stopServer();
fileServer = null;
}
}
protected boolean serving() {
boolean result = false;
if (fileServer != null) result = true;
return result;