bugfix
This commit is contained in:
parent
77a63ee7f4
commit
5f6c596a12
|
@ -2480,7 +2480,7 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "tfclient"
|
||||
version = "0.1.3"
|
||||
version = "0.1.4"
|
||||
dependencies = [
|
||||
"base64 0.21.0",
|
||||
"base64-serde",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "tfclient"
|
||||
version = "0.1.3"
|
||||
version = "0.1.4"
|
||||
edition = "2021"
|
||||
description = "An open-source reimplementation of a Defined Networking-compatible client"
|
||||
license = "GPL-3.0-or-later"
|
||||
|
|
|
@ -94,6 +94,14 @@ pub fn daemon_main(name: String, server: String) {
|
|||
nebulaworker_main(config_nebula, name_nebula, transmitter_nebula, rx_nebula);
|
||||
});
|
||||
|
||||
info!("Starting socket worker thread...");
|
||||
let name_socket = name.clone();
|
||||
let config_socket = config.clone();
|
||||
let tx_socket = transmitter.clone();
|
||||
let socket_thread = thread::spawn(move || {
|
||||
socketworker_main(config_socket, name_socket, tx_socket, rx_socket);
|
||||
});
|
||||
|
||||
info!("Starting timer thread...");
|
||||
if !config.disable_automatic_config_updates {
|
||||
let timer_transmitter = transmitter.clone();
|
||||
|
@ -113,12 +121,6 @@ pub fn daemon_main(name: String, server: String) {
|
|||
info!("automatic config updates have been disabled - not starting timer thread");
|
||||
}
|
||||
|
||||
info!("Starting socket worker thread...");
|
||||
let name_socket = name.clone();
|
||||
let socket_thread = thread::spawn(move || {
|
||||
socketworker_main(config, name_socket, transmitter, rx_socket);
|
||||
});
|
||||
|
||||
info!("Waiting for socket thread to exit...");
|
||||
match socket_thread.join() {
|
||||
Ok(_) => (),
|
||||
|
|
Loading…
Reference in New Issue