Call client.Start() sunchronously. Calling thos async avoids some stuttering

when people log in, but fatally screws up money.
avinationmerge
Melanie Thielker 2010-07-02 09:40:58 +02:00
parent c87e6a289c
commit 233c872d24
1 changed files with 10 additions and 1 deletions

View File

@ -900,7 +900,16 @@ namespace OpenSim.Region.ClientStack.LindenUDP
// Start the IClientAPI
// Spin it off so that it doesn't clog up the LLUDPServer
Util.FireAndForget(delegate(object o) { client.Start(); });
//Util.FireAndForget(delegate(object o) { client.Start(); });
// NOTE: DO NOT CALL THIS ASYNCHRONOUSLY!!!!!
// This method will ultimately cause the modules to hook
// client events in OnNewClient. If they can't do this
// before further packets are processed, packets WILL BE LOST.
// This includes the all-important EconomyDataRequest!
// So using FireAndForget here WILL screw up money. Badly.
// You have been warned!
client.Start();
}
else
{