mirror of
https://github.com/opensim/opensim.git
synced 2026-05-21 07:45:41 +08:00
Last position will be stored in the DB on logout, and the avatar can continue from the same position in the next login (only with MySQL at the moment)
This commit is contained in:
@@ -585,7 +585,18 @@ namespace OpenSim.Framework.Data.MySQL
|
||||
/// <param name="agent">The agent to create</param>
|
||||
public void AddNewUserAgent(UserAgentData agent)
|
||||
{
|
||||
// Do nothing.
|
||||
try
|
||||
{
|
||||
lock (database)
|
||||
{
|
||||
database.insertAgentRow(agent);
|
||||
}
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
database.Reconnect();
|
||||
m_log.Error(e.ToString());
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user