aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data/MySQL/MySQLUserData.cs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Data/MySQL/MySQLUserData.cs4
1 files changed, 4 insertions, 0 deletions
diff --git a/OpenSim/Data/MySQL/MySQLUserData.cs b/OpenSim/Data/MySQL/MySQLUserData.cs
index 3a088cf..ecd534a 100644
--- a/OpenSim/Data/MySQL/MySQLUserData.cs
+++ b/OpenSim/Data/MySQL/MySQLUserData.cs
@@ -617,6 +617,10 @@ namespace OpenSim.Data.MySQL
617 /// <param name="agent">The agent to create</param> 617 /// <param name="agent">The agent to create</param>
618 public override void AddNewUserAgent(UserAgentData agent) 618 public override void AddNewUserAgent(UserAgentData agent)
619 { 619 {
620 UUID zero = UUID.Zero;
621 if (agent.ProfileID == zero || agent.SessionID == zero)
622 return;
623
620 MySQLSuperManager dbm = GetLockedConnection(); 624 MySQLSuperManager dbm = GetLockedConnection();
621 try 625 try
622 { 626 {