Make a copy of the network config message and store that one.

Using the original message and storing that into the settings resulted
in a not yet fully understood deadlock. Presumably related to missing
and/or stray replies.
This commit is contained in:
Michael Lotz 2013-03-30 20:17:39 +01:00
parent 4e4c94e314
commit a3a541eebd

View File

@ -351,9 +351,10 @@ NetServer::MessageReceived(BMessage* message)
case kMsgAddPersistentNetwork:
{
status_t result = _ConvertNetworkToSettings(*message);
BMessage network = *message;
status_t result = _ConvertNetworkToSettings(network);
if (result == B_OK)
result = fSettings.AddNetwork(*message);
result = fSettings.AddNetwork(network);
BMessage reply(B_REPLY);
reply.AddInt32("status", result);