If opening the net_stack driver failed because there was no stack, opening it
a second time would magically work, as it skipped its initialization then... git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22405 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
9f0d226c72
commit
b5b11466b2
@ -221,6 +221,7 @@ net_stack_open(const char *name, uint32 flags, void **_cookie)
|
||||
status_t status = get_module(NET_STARTER_MODULE_NAME, &module);
|
||||
if (status < B_OK) {
|
||||
ERROR("Can't load network stack module: %ld\n", status);
|
||||
atomic_add(&sOpenCount, -1);
|
||||
return status;
|
||||
}
|
||||
|
||||
@ -228,6 +229,7 @@ net_stack_open(const char *name, uint32 flags, void **_cookie)
|
||||
if (status < B_OK) {
|
||||
ERROR("Can't load " NET_SOCKET_MODULE_NAME " module: %ld\n", status);
|
||||
put_module(NET_STARTER_MODULE_NAME);
|
||||
atomic_add(&sOpenCount, -1);
|
||||
return status;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user