aboutsummaryrefslogtreecommitdiff
path: root/src/IvyClient.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/IvyClient.java')
-rwxr-xr-xsrc/IvyClient.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/IvyClient.java b/src/IvyClient.java
index 5e71ccb..b0c1200 100755
--- a/src/IvyClient.java
+++ b/src/IvyClient.java
@@ -103,6 +103,7 @@ public class IvyClient implements Runnable {
final static char newLineChar = '\n';
// private variables
+ private static int pingSerial = 0;
private static Integer csMutex=new Integer(0);
private static int clientSerial=0; /* an unique ID for each IvyClient */
private Stack PCHStack = new Stack();
@@ -246,7 +247,7 @@ public class IvyClient implements Runnable {
*/
public void ping(PingCallback pc) throws IvyException {
PCHStack.push(new PingCallbackHolder(pc));
- sendString(Ping,0,"");
+ sendString(Ping,pingSerial++,"");
}
///////////////////////////////////////////////////
@@ -490,7 +491,7 @@ public class IvyClient implements Runnable {
((PingCallbackHolder)PCHStack.pop()).run();
break;
case Ping:
- sendString(Pong,0,"");
+ sendString(Pong,msgId.intValue(),"");
break;
case AddRegexp:
String regexp=s.substring(from,b.length);