diff options
author | Teravus Ovares | 2008-02-09 07:53:01 +0000 |
---|---|---|
committer | Teravus Ovares | 2008-02-09 07:53:01 +0000 |
commit | 07d0f558c441a0936441ed23ed076cf54a0dc578 (patch) | |
tree | b63c06f8975b904c1e792647b7e0bc045dfe2e7c /OpenSim/Framework | |
parent | Moved LICENSE.txt into root. (diff) | |
download | opensim-SC_OLD-07d0f558c441a0936441ed23ed076cf54a0dc578.zip opensim-SC_OLD-07d0f558c441a0936441ed23ed076cf54a0dc578.tar.gz opensim-SC_OLD-07d0f558c441a0936441ed23ed076cf54a0dc578.tar.bz2 opensim-SC_OLD-07d0f558c441a0936441ed23ed076cf54a0dc578.tar.xz |
* Fixed nebadon's UserServer crash bug from yesterday.
* Made Estate tools work for estate managers without needing to request admin status First
* Added code to make the Simulator version to be reported in the About box of the client
Diffstat (limited to 'OpenSim/Framework')
-rw-r--r-- | OpenSim/Framework/Communications/UserManagerBase.cs | 12 | ||||
-rw-r--r-- | OpenSim/Framework/IScene.cs | 2 |
2 files changed, 11 insertions, 3 deletions
diff --git a/OpenSim/Framework/Communications/UserManagerBase.cs b/OpenSim/Framework/Communications/UserManagerBase.cs index e5a943b..dbf9276 100644 --- a/OpenSim/Framework/Communications/UserManagerBase.cs +++ b/OpenSim/Framework/Communications/UserManagerBase.cs | |||
@@ -427,6 +427,8 @@ namespace OpenSim.Framework.UserManagement | |||
427 | 427 | ||
428 | if (userProfile != null) | 428 | if (userProfile != null) |
429 | { | 429 | { |
430 | // This line needs to be in side the above if statement or the UserServer will crash on some logouts. | ||
431 | m_log.Info("[LOGOUT]: " + userProfile.username + " " + userProfile.surname + " from " + regionhandle + "(" + posx + "," + posy + "," + posz + ")"); | ||
430 | 432 | ||
431 | userAgent = userProfile.currentAgent; | 433 | userAgent = userProfile.currentAgent; |
432 | if (userAgent != null) | 434 | if (userAgent != null) |
@@ -434,7 +436,10 @@ namespace OpenSim.Framework.UserManagement | |||
434 | userAgent.agentOnline = false; | 436 | userAgent.agentOnline = false; |
435 | userAgent.logoutTime = Util.UnixTimeSinceEpoch(); | 437 | userAgent.logoutTime = Util.UnixTimeSinceEpoch(); |
436 | userAgent.sessionID = LLUUID.Zero; | 438 | userAgent.sessionID = LLUUID.Zero; |
437 | userAgent.currentRegion = regionid; | 439 | if (regionid != null) |
440 | { | ||
441 | userAgent.currentRegion = regionid; | ||
442 | } | ||
438 | userAgent.currentHandle = regionhandle; | 443 | userAgent.currentHandle = regionhandle; |
439 | 444 | ||
440 | userAgent.currentPos = currentPos; | 445 | userAgent.currentPos = currentPos; |
@@ -446,9 +451,10 @@ namespace OpenSim.Framework.UserManagement | |||
446 | } | 451 | } |
447 | else | 452 | else |
448 | { | 453 | { |
449 | m_log.Info("[LOGOUT]: didn't save logout position, currentAgent: " + userAgent.ToString() ); | 454 | // If currentagent is null, we can't reference it here or the UserServer crashes! |
455 | m_log.Info("[LOGOUT]: didn't save logout position: " + userid.ToString()); | ||
450 | } | 456 | } |
451 | m_log.Info("[LOGOUT]: " + userProfile.username + " " + userProfile.surname + " from " + regionhandle + "(" + posx + "," + posy + "," + posz + ")" ); | 457 | |
452 | } | 458 | } |
453 | else | 459 | else |
454 | { | 460 | { |
diff --git a/OpenSim/Framework/IScene.cs b/OpenSim/Framework/IScene.cs index 96cb21e..3445050 100644 --- a/OpenSim/Framework/IScene.cs +++ b/OpenSim/Framework/IScene.cs | |||
@@ -52,6 +52,8 @@ namespace OpenSim.Framework | |||
52 | void Restart(int seconds); | 52 | void Restart(int seconds); |
53 | bool OtherRegionUp(RegionInfo thisRegion); | 53 | bool OtherRegionUp(RegionInfo thisRegion); |
54 | 54 | ||
55 | string GetSimulatorVersion(); | ||
56 | |||
55 | RegionInfo RegionInfo { get; } | 57 | RegionInfo RegionInfo { get; } |
56 | uint NextLocalId { get; } | 58 | uint NextLocalId { get; } |
57 | 59 | ||