about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/config/preferences.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/config/preferences.c b/src/config/preferences.c
index 6ac9a6d6..1f7f2fd1 100644
--- a/src/config/preferences.c
+++ b/src/config/preferences.c
@@ -252,7 +252,11 @@ prefs_get_priority(void)
 gint
 prefs_get_reconnect(void)
 {
-    return g_key_file_get_integer(prefs, PREF_GROUP_CONNECTION, "reconnect", NULL);
+    if (!g_key_file_has_key(prefs, PREF_GROUP_CONNECTION, "reconnect", NULL)) {
+        return 30;
+    } else {
+        return g_key_file_get_integer(prefs, PREF_GROUP_CONNECTION, "reconnect", NULL);
+    }
 }
 
 void