mirror of
https://github.com/holub/mame
synced 2025-10-07 09:25:34 +03:00
dinetwork: avoid crashing (nw)
This commit is contained in:
parent
0e9a05ce24
commit
c2ffeb4ad6
@ -53,6 +53,7 @@ void device_network_interface::recv_cb(u8 *buf, int len)
|
||||
if (result)
|
||||
{
|
||||
// stop receiving more data from the network
|
||||
if (m_dev)
|
||||
m_dev->stop();
|
||||
|
||||
// schedule receive complete callback
|
||||
@ -65,6 +66,7 @@ TIMER_CALLBACK_MEMBER(device_network_interface::recv_complete)
|
||||
recv_complete_cb(param);
|
||||
|
||||
// start receiving data from the network again
|
||||
if (m_dev)
|
||||
m_dev->start();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user