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:
@@ -351,9 +351,10 @@ NetServer::MessageReceived(BMessage* message)
|
|||||||
|
|
||||||
case kMsgAddPersistentNetwork:
|
case kMsgAddPersistentNetwork:
|
||||||
{
|
{
|
||||||
status_t result = _ConvertNetworkToSettings(*message);
|
BMessage network = *message;
|
||||||
|
status_t result = _ConvertNetworkToSettings(network);
|
||||||
if (result == B_OK)
|
if (result == B_OK)
|
||||||
result = fSettings.AddNetwork(*message);
|
result = fSettings.AddNetwork(network);
|
||||||
|
|
||||||
BMessage reply(B_REPLY);
|
BMessage reply(B_REPLY);
|
||||||
reply.AddInt32("status", result);
|
reply.AddInt32("status", result);
|
||||||
|
|||||||
Reference in New Issue
Block a user