diff options
Diffstat (limited to 'OpenSim/Data/MySQL/MySQLUserData.cs')
-rw-r--r-- | OpenSim/Data/MySQL/MySQLUserData.cs | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/OpenSim/Data/MySQL/MySQLUserData.cs b/OpenSim/Data/MySQL/MySQLUserData.cs index 35bcb1d..745583f 100644 --- a/OpenSim/Data/MySQL/MySQLUserData.cs +++ b/OpenSim/Data/MySQL/MySQLUserData.cs | |||
@@ -696,8 +696,19 @@ namespace OpenSim.Data.MySQL | |||
696 | // override | 696 | // override |
697 | override public void UpdateUserAppearance(LLUUID user, AvatarAppearance appearance) | 697 | override public void UpdateUserAppearance(LLUUID user, AvatarAppearance appearance) |
698 | { | 698 | { |
699 | appearance.Owner = user; | 699 | try |
700 | database.insertAppearanceRow(appearance); | 700 | { |
701 | lock (database) | ||
702 | { | ||
703 | appearance.Owner = user; | ||
704 | database.insertAppearanceRow(appearance); | ||
705 | } | ||
706 | } | ||
707 | catch (Exception e) | ||
708 | { | ||
709 | database.Reconnect(); | ||
710 | m_log.Error(e.ToString()); | ||
711 | } | ||
701 | } | 712 | } |
702 | 713 | ||
703 | override public void AddAttachment(LLUUID user, LLUUID item) | 714 | override public void AddAttachment(LLUUID user, LLUUID item) |