mirror of
https://github.com/binlaab/nanofiles.git
synced 2026-07-01 13:47:41 +02:00
implementado quit, hay que cerrar los sockets TCP cuando terminen las cosas
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user