File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ public JSONObject runCommand() throws Exception {
103103 }else if (func .equals ("send" )) {
104104
105105 if (!(existsParam ("to" ) || existsParam ("id" )|| existsParam ("publickey" )) || !existsParam ("application" ) || !existsParam ("data" ) ) {
106- throw new Exception ("MUST specify to, application and data for a send command" );
106+ throw new Exception ("MUST specify to|id|publickey , application and data for a send command" );
107107 }
108108
109109 //Send a message..
Original file line number Diff line number Diff line change @@ -438,13 +438,6 @@ protected void processMessage(Message zMessage) throws Exception {
438438 }
439439 }
440440
441- //Tell MAXIMA
442- Message maxconn = new Message (MaximaManager .MAXIMA_CONNECTED );
443- maxconn .addObject ("nioclient" , nioc );
444- maxconn .addString ("uid" , nioc .getUID ());
445- maxconn .addBoolean ("incoming" , nioc .isIncoming ());
446- Main .getInstance ().getMaxima ().PostMessage (maxconn );
447-
448441 }else if (zMessage .getMessageType ().equals (NIO_INCOMINGMSG )) {
449442 //Who is it from
450443 String uid = zMessage .getString ("uid" );
Original file line number Diff line number Diff line change @@ -211,6 +211,13 @@ public void run() {
211211 newconn .addObject ("client" , nioclient );
212212 Main .getInstance ().getNetworkManager ().getP2PManager ().PostMessage (newconn );
213213
214+ //Tell MAXIMA
215+ Message maxconn = new Message (MaximaManager .MAXIMA_CONNECTED );
216+ maxconn .addObject ("nioclient" , nioclient );
217+ maxconn .addString ("uid" , nioclient .getUID ());
218+ maxconn .addBoolean ("incoming" , nioclient .isIncoming ());
219+ Main .getInstance ().getMaxima ().PostMessage (maxconn );
220+
214221 //Is this an incoming connection.. send a greeting!
215222 if (nioclient .isIncoming ()) {
216223
You can’t perform that action at this time.
0 commit comments