Reduced Remote_client's connection retry num 49/129549/1
authorWonkeun Oh <wonkeun.oh@samsung.com>
Wed, 17 May 2017 01:30:15 +0000 (10:30 +0900)
committerInHong Han <inhong1.han@samsung.com>
Wed, 17 May 2017 02:02:13 +0000 (11:02 +0900)
The remote_client try to connect to panel for 80 seconds in previous codes.
It might cause the ANR timeout.
We don't need to retry for more than 8 seconds, in total.

Change-Id: Ic0984de9fdeaaf8008c702e1df3dfe55a0303b77

ism/src/isf_remote_client.cpp

index 11c1d30..4712be8 100644 (file)
@@ -182,7 +182,7 @@ public:
                 if (!check_panel (display))
                     scim_launch_panel (true, "socket", display, NULL);
 #endif
-                for (int i = 0; i < 200; ++i) {
+                for (int i = 0; i < 20; ++i) {
                     if (m_socket_remoteinput2panel.connect (addr)) {
                         ret = true;
                         break;