Compare commits

..

No commits in common. "main" and "ogagentuser-sigterm" have entirely different histories.

4 changed files with 2 additions and 18 deletions

View File

@ -6,12 +6,6 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [5.8.1] - 2025-06-13
### Fixed
- Improve fail condition when no network is detected
## [5.8.0] - 2025-06-12 ## [5.8.0] - 2025-06-12
### Changed ### Changed

View File

@ -1,9 +1,3 @@
ogagent (5.8.1-1) stable; urgency=medium
* Improve fail condition when no network is detected
-- OpenGnsys developers <info@opengnsys.es> Fri, 13 Jun 2025 10:01:43 +0200
ogagent (5.8.0-1) stable; urgency=medium ogagent (5.8.0-1) stable; urgency=medium
* When client disconnect, assume that the user logged out * When client disconnect, assume that the user logged out

View File

@ -1 +1 @@
5.8.1 5.8.0

View File

@ -147,11 +147,7 @@ class OpenGnSysWorker(ServerWorker):
for t in range(0, 300): for t in range(0, 300):
try: try:
# Get the first network interface # Get the first network interface
nets = list (operations.getNetworkInfo()) self.interface = list(operations.getNetworkInfo())[0]
if 0 == len (nets):
logger.error ('No network interfaces found')
raise Exception ('No network interfaces found')
self.interface = nets[0]
except Exception as e: except Exception as e:
# Wait 1 sec. and retry # Wait 1 sec. and retry
logger.warn (e) logger.warn (e)