mirror of
https://github.com/genodelabs/genode.git
synced 2025-02-20 09:46:20 +00:00
wifi_drv: occasionally crashes during session destruction
Drop rx-packets in case there is no client session fixes #2557
This commit is contained in:
parent
f18e8a4553
commit
3409eeeb34
@ -199,6 +199,13 @@ class Root : public Genode::Root_component<Wifi_session_component,
|
||||
return session;
|
||||
}
|
||||
|
||||
void _destroy_session(Wifi_session_component *session)
|
||||
{
|
||||
/* stop rx */
|
||||
Root::instance->session = nullptr;
|
||||
Genode::Root_component<Wifi_session_component, Genode::Single_client>::_destroy_session(session);
|
||||
}
|
||||
|
||||
public:
|
||||
|
||||
net_device *device = nullptr;
|
||||
|
Loading…
x
Reference in New Issue
Block a user