osdnet: don't call it close (nw)

This commit is contained in:
cracyc 2018-06-01 08:41:30 -05:00
parent 71046c63c2
commit dabbd32a62
3 changed files with 3 additions and 3 deletions

View File

@ -41,7 +41,7 @@ void device_network_interface::set_mac(const char *mac)
void device_network_interface::set_interface(int id) void device_network_interface::set_interface(int id)
{ {
if(m_dev) if(m_dev)
m_dev->close(); m_dev->stop();
m_dev.reset(open_netdev(id, this, (int)(m_bandwidth*1000000/8.0f/1500))); m_dev.reset(open_netdev(id, this, (int)(m_bandwidth*1000000/8.0f/1500)));
if(!m_dev) { if(!m_dev) {
device().logerror("Network interface %d not found\n", id); device().logerror("Network interface %d not found\n", id);

View File

@ -47,7 +47,7 @@ osd_netdev::~osd_netdev()
{ {
} }
void osd_netdev::close() void osd_netdev::stop()
{ {
m_stop = true; m_stop = true;
m_timer->reset(); m_timer->reset();

View File

@ -21,7 +21,7 @@ public:
}; };
osd_netdev(class device_network_interface *ifdev, int rate); osd_netdev(class device_network_interface *ifdev, int rate);
virtual ~osd_netdev(); virtual ~osd_netdev();
void close(); void stop();
virtual int send(uint8_t *buf, int len); virtual int send(uint8_t *buf, int len);
virtual void set_mac(const char *mac); virtual void set_mac(const char *mac);