Added catching exceptions other than WebException in doIMSending, so that

it won't crash script engine and will report what exception it is.
dsg
Huaiyu (Kitty) Liu 2011-06-01 15:37:14 -07:00
parent 1cbbb010b0
commit b03ecf24c4
1 changed files with 4 additions and 0 deletions

View File

@ -626,6 +626,10 @@ namespace OpenSim.Region.CoreModules.Avatar.InstantMessage
{
m_log.ErrorFormat("[GRID INSTANT MESSAGE]: Error sending message to {0} the host didn't respond " + e.ToString(), reginfo.ServerURI.ToString());
}
catch (Exception e)
{
m_log.ErrorFormat("[GRID INSTANT MESSAGE]: Error doIMSending to {0}, Error Message -- {1} ", reginfo.ServerURI.ToString(), e.ToString());
}
return false;
}