private async void tor_control_auth () throws Error {
yield tor_control.authenticate_async (password);
- try {
- var bridges = gconf.get_list (GCONF_KEY_BRIDGES, GConf.ValueType.STRING);
+ var bridges = gconf.get_list (GCONF_KEY_BRIDGES, GConf.ValueType.STRING);
- if (bridges.length () > 0) {
- // Enable bridge relays
- tor_control.set_conf_list ("Bridge", bridges);
- tor_control.set_conf_bool ("UseBridges", true);
+ if (bridges.length () > 0) {
+ // Enable bridge relays
+ tor_control.set_conf_list ("Bridge", bridges);
+ tor_control.set_conf_bool ("UseBridges", true);
- bool use = yield tor_control.get_conf_bool_async ("UseBridges");
- if (!use) {
- Hildon.Banner.show_information (null, null,
- "Failed to set up bridge relays");
- }
+ bool use = yield tor_control.get_conf_bool_async ("UseBridges");
+ if (!use) {
+ Hildon.Banner.show_information (null, null,
+ "Failed to set up bridge relays");
}
- } catch (Error e) {
- error ("Error loading bridges: %s", e.message);
}
}
try {
bridges = gconf.get_list (GCONF_KEY_BRIDGES, GConf.ValueType.STRING);
} catch (Error e) {
- error ("Error loading bridges: %s", e.message);
+ critical ("Error loading bridges: %s", e.message);
}
foreach (string bridge in bridges) {
if (list == null)