diff --git a/app/src/main/java/com/xuhao/android/oksocket/SimpleDemoActivity.java b/app/src/main/java/com/xuhao/android/oksocket/SimpleDemoActivity.java index fc7aac8..844f7df 100644 --- a/app/src/main/java/com/xuhao/android/oksocket/SimpleDemoActivity.java +++ b/app/src/main/java/com/xuhao/android/oksocket/SimpleDemoActivity.java @@ -144,7 +144,7 @@ private void initManager() { mOkOptions = new OkSocketOptions.Builder() .setReconnectionManager(new NoneReconnect()) .setWritePackageBytes(1024) - .setCallbackInThread(true) + .setCallbackInThread(false) .build(); mManager = OkSocket.open(mInfo).option(mOkOptions); mManager.registerReceiver(adapter);