From 0a0be038155046b0c30384224154ed55a8ef969d Mon Sep 17 00:00:00 2001 From: Myth Yang Date: Fri, 23 Aug 2013 10:57:32 +0800 Subject: changed --- client/Socket-demo/Transam.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'client/Socket-demo/Transam.java') diff --git a/client/Socket-demo/Transam.java b/client/Socket-demo/Transam.java index d809be1..6f0fb44 100644 --- a/client/Socket-demo/Transam.java +++ b/client/Socket-demo/Transam.java @@ -10,7 +10,6 @@ import android.os.Handler; import android.os.Message; public class Transam implements Runnable { - public static String outmsg = ""; public Timer timer; public boolean flag = true; public int cnt = 4; @@ -44,7 +43,7 @@ public class Transam implements Runnable { public void run() { try{ SocketClient client = new SocketClient(ip,port); - Myrespond res = client.sendMsg(req); + res = client.sendMsg(req); core.recieveInfo(res); Message msg = new Message(); msg.what = 1; @@ -65,6 +64,7 @@ public class Transam implements Runnable { flag = true; break; case 2: + res = new Myrespond(); res.wrong = msg.obj.toString(); core.recieveInfo(res); break; -- cgit v1.2.3-70-g09d2