diff options
author | James Booth <boothj5@gmail.com> | 2016-01-02 16:45:20 +0000 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2016-01-02 16:45:20 +0000 |
commit | 3d9e86057466936970592dfd8938cc6eb393911b (patch) | |
tree | 405ebbeffba3b58e297fb2d328b12e9ccbe3b356 /src/config | |
parent | 523c35c375a3e820231adb9e9e1409731e1178e3 (diff) | |
download | profani-tty-3d9e86057466936970592dfd8938cc6eb393911b.tar.gz |
Set autoping timeout default to 10 seconds, added null checks
Diffstat (limited to 'src/config')
-rw-r--r-- | src/config/preferences.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/config/preferences.c b/src/config/preferences.c index 5447cec4..89fed31a 100644 --- a/src/config/preferences.c +++ b/src/config/preferences.c @@ -517,7 +517,7 @@ gint prefs_get_autoping_timeout(void) { if (!g_key_file_has_key(prefs, PREF_GROUP_CONNECTION, "autoping.timeout", NULL)) { - return 5; + return 10; } else { return g_key_file_get_integer(prefs, PREF_GROUP_CONNECTION, "autoping.timeout", NULL); } |