Set autoping timeout default to 10 seconds, added null checks

This commit is contained in:
James Booth
2016-01-02 16:45:20 +00:00
parent 523c35c375
commit 3d9e860574
2 changed files with 14 additions and 3 deletions

View File

@@ -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);
}