File: 0002-wait-dbus-up-to-20-times.patch

package info (click to toggle)
fcitx 1%3A4.2.9.9-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 19,800 kB
  • sloc: ansic: 134,151; cpp: 7,280; sh: 2,778; python: 800; xml: 345; makefile: 42
file content (21 lines) | stat: -rw-r--r-- 599 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
From: YunQiang Su <wzssyqa@gmail.com>
Date: Fri, 20 Jul 2012 18:00:58 +0800
Subject: wait dbus up to 20 times

---
 src/module/dbus/dbusstuff.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/module/dbus/dbusstuff.c b/src/module/dbus/dbusstuff.c
index 06f4ced..aea3fd4 100644
--- a/src/module/dbus/dbusstuff.c
+++ b/src/module/dbus/dbusstuff.c
@@ -46,7 +46,7 @@ typedef struct _FcitxDBus {
 } FcitxDBus;
 
 #define RETRY_INTERVAL 2
-#define MAX_RETRY_TIMES 5
+#define MAX_RETRY_TIMES 20
 
 static void* DBusCreate(FcitxInstance* instance);
 static void DBusSetFD(void* arg);