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:
parent
4e4c94e314
commit
a3a541eebd
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user