Skip to content

Commit 4631778

Browse files
latests
1 parent d3c3b36 commit 4631778

3 files changed

Lines changed: 8 additions & 8 deletions

File tree

src/org/minima/system/commands/maxima/maxima.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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..

src/org/minima/system/network/minima/NIOManager.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff 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");

src/org/minima/system/network/minima/NIOMessage.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)