mirror of
https://github.com/binlaab/nanofiles.git
synced 2026-07-01 17:07:20 +02:00
arreglado ping y empezado peerdl y dirdl
This commit is contained in:
@@ -246,6 +246,7 @@ public class NFController {
|
||||
case NFCommands.COM_FILELIST_PEER:
|
||||
case NFCommands.COM_DOWNLOAD_PEER:
|
||||
commandAllowed = (currentState == ONLINE);
|
||||
System.out.println("allowed = " + commandAllowed);
|
||||
if (!commandAllowed) {
|
||||
System.err.println("* Comando no permitido en estado OFFLINE. Haz un 'ping' primero.");
|
||||
}
|
||||
@@ -270,6 +271,7 @@ public class NFController {
|
||||
|
||||
switch (currentCommand) {
|
||||
case NFCommands.COM_PING:
|
||||
System.out.println("updateCurrentState ping");
|
||||
currentState = ONLINE;
|
||||
break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user