diff options
author | Justin Clark-Casey (justincc) | 2009-11-03 19:11:09 +0000 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2009-11-03 19:11:09 +0000 |
commit | af0e5d097480de264e7501e7d5d35328be5640bb (patch) | |
tree | 4ca5cd796ed9618dc9134a6e5eee1f7e7912bee4 /OpenSim/TestSuite | |
parent | minor: remove some mono compiler warnings (diff) | |
parent | Fixed a couple of NREs in corner cases. (diff) | |
download | opensim-SC_OLD-af0e5d097480de264e7501e7d5d35328be5640bb.zip opensim-SC_OLD-af0e5d097480de264e7501e7d5d35328be5640bb.tar.gz opensim-SC_OLD-af0e5d097480de264e7501e7d5d35328be5640bb.tar.bz2 opensim-SC_OLD-af0e5d097480de264e7501e7d5d35328be5640bb.tar.xz |
Merge branch 'master' of ssh://justincc@opensimulator.org/var/git/opensim
Diffstat (limited to 'OpenSim/TestSuite')
-rw-r--r-- | OpenSim/TestSuite/PhysicsBot.cs | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/OpenSim/TestSuite/PhysicsBot.cs b/OpenSim/TestSuite/PhysicsBot.cs index 9c9c1ea..fac4275 100644 --- a/OpenSim/TestSuite/PhysicsBot.cs +++ b/OpenSim/TestSuite/PhysicsBot.cs | |||
@@ -130,9 +130,9 @@ namespace OpenSim.TestSuite | |||
130 | public void startup() | 130 | public void startup() |
131 | { | 131 | { |
132 | client.Settings.LOGIN_SERVER = loginURI; | 132 | client.Settings.LOGIN_SERVER = loginURI; |
133 | client.Network.OnConnected += new NetworkManager.ConnectedCallback(this.Network_OnConnected); | 133 | client.Network.LoginProgress += this.Network_LoginProgress; |
134 | client.Network.OnSimConnected += new NetworkManager.SimConnectedCallback(this.Network_OnConnected); | 134 | client.Network.SimConnected += this.Network_SimConnected; |
135 | client.Network.OnDisconnected += new NetworkManager.DisconnectedCallback(this.Network_OnDisconnected); | 135 | client.Network.Disconnected += this.Network_OnDisconnected; |
136 | if (client.Network.Login(firstname, lastname, password, "pCampBot", "Your name")) | 136 | if (client.Network.Login(firstname, lastname, password, "pCampBot", "Your name")) |
137 | { | 137 | { |
138 | 138 | ||
@@ -155,19 +155,22 @@ namespace OpenSim.TestSuite | |||
155 | } | 155 | } |
156 | } | 156 | } |
157 | 157 | ||
158 | public void Network_OnConnected(object sender) | 158 | public void Network_LoginProgress(object sender, LoginProgressEventArgs args) |
159 | { | 159 | { |
160 | if (OnConnected != null) | 160 | if (args.Status == LoginStatus.Success) |
161 | { | 161 | { |
162 | OnConnected(this, EventType.CONNECTED); | 162 | if (OnConnected != null) |
163 | { | ||
164 | OnConnected(this, EventType.CONNECTED); | ||
165 | } | ||
163 | } | 166 | } |
164 | } | 167 | } |
165 | 168 | ||
166 | public void Simulator_Connected(object sender) | 169 | public void Network_SimConnected(object sender, SimConnectedEventArgs args) |
167 | { | 170 | { |
168 | } | 171 | } |
169 | 172 | ||
170 | public void Network_OnDisconnected(NetworkManager.DisconnectType reason, string message) | 173 | public void Network_OnDisconnected(object sender, DisconnectedEventArgs args) |
171 | { | 174 | { |
172 | if (OnDisconnected != null) | 175 | if (OnDisconnected != null) |
173 | { | 176 | { |