Log instead of crash (User login, getting friends list)
parent
cdd378a2c2
commit
7f071dd193
|
@ -194,9 +194,12 @@ namespace OpenSim.Framework.Data.SQLite
|
|||
using (SqliteCommand cmd = new SqliteCommand(SelectFriendsByUUID, g_conn))
|
||||
{
|
||||
cmd.Parameters.Add(new SqliteParameter(":ownerID", friendlistowner.UUID.ToString()));
|
||||
|
||||
try
|
||||
{
|
||||
using (IDataReader reader = cmd.ExecuteReader())
|
||||
{
|
||||
while(reader.Read())
|
||||
while (reader.Read())
|
||||
{
|
||||
FriendListItem user = new FriendListItem();
|
||||
user.FriendListOwner = friendlistowner;
|
||||
|
@ -208,6 +211,11 @@ namespace OpenSim.Framework.Data.SQLite
|
|||
reader.Close();
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
MainLog.Instance.Error("USER", "Exception getting friends list for user: " + ex.ToString());
|
||||
}
|
||||
}
|
||||
|
||||
return returnlist;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue