diff options
Diffstat (limited to 'lib/network')
-rw-r--r-- | lib/network/connection_manager.pm | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/network/connection_manager.pm b/lib/network/connection_manager.pm index d6dd3cb..c44bb63 100644 --- a/lib/network/connection_manager.pm +++ b/lib/network/connection_manager.pm @@ -213,7 +213,15 @@ sub start_connection { $cmanager->update_on_status_change; if ($cmanager->{wait_message_timeout}) { $cmanager->{wait_message} = $wait; - Glib::Timeout->add($cmanager->{wait_message_timeout}, sub { undef $cmanager->{wait_message} }); + Glib::Timeout->add($cmanager->{wait_message_timeout}, + sub { + if ($cmanager->{wait_message}) { + undef $cmanager->{wait_message}; + $cmanager->{in}->ask_warn(N("Error"), N("Connection failed.")) + if !$cmanager->{connection}->get_status; + } + undef; + }); }; } |