mirror of
https://github.com/oe7drt/YSFClients.git
synced 2026-02-24 16:15:14 +01:00
Disable network reading when not linked.
This commit is contained in:
parent
4e8e40d582
commit
65c87982e7
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 2009-2014,2016 by Jonathan Naylor G4KLX
|
||||
* Copyright (C) 2009-2014,2016,2017 by Jonathan Naylor G4KLX
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
|
|
@ -130,6 +130,9 @@ bool CNetwork::writeUnlink()
|
|||
|
||||
void CNetwork::clock(unsigned int ms)
|
||||
{
|
||||
if (m_port == 0U)
|
||||
return;
|
||||
|
||||
unsigned char buffer[BUFFER_LENGTH];
|
||||
|
||||
in_addr address;
|
||||
|
|
|
|||
Loading…
Reference in a new issue