diff options
author | Daouda Lo <daouda@mandriva.com> | 2005-01-07 13:24:45 +0000 |
---|---|---|
committer | Daouda Lo <daouda@mandriva.com> | 2005-01-07 13:24:45 +0000 |
commit | ea9f684a2407de3f6c9c1a61286f20556bbe78c5 (patch) | |
tree | 240f47c329ae522e0bd47f9c613024e6b9ded789 | |
parent | 38ea9021af0f9c5e60cf5220fd94e038691a94f2 (diff) | |
download | mgaonline-ea9f684a2407de3f6c9c1a61286f20556bbe78c5.tar mgaonline-ea9f684a2407de3f6c9c1a61286f20556bbe78c5.tar.gz mgaonline-ea9f684a2407de3f6c9c1a61286f20556bbe78c5.tar.bz2 mgaonline-ea9f684a2407de3f6c9c1a61286f20556bbe78c5.tar.xz mgaonline-ea9f684a2407de3f6c9c1a61286f20556bbe78c5.zip |
- protect mdkapplet from crashing when server is down or connection
failed
-rwxr-xr-x | mdkapplet | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -275,7 +275,7 @@ sub silentCheck { 99 => sub { logIt(N("Wrong Action or host or login.\n")); go2State('critical') }, 500 => sub { logIt(N("Something is wrong with your network settings (check your route, firewall or proxy settings)\n")); go2State('critical') } }; - $retcode->{$u}->(); + eval { $retcode->{$u}->() }; if ($@) { logIt(N("Problem occured while connecting to the server, please contact the support team")); go2State('critical') } } sub okState { $isAvailable = 0; logIt(N("System is up-to-date\n")); go2State('okay') } sub compareWithInstalled { |