From f986f0dfa2175326dc78ba297ea0295fe9e7f537 Mon Sep 17 00:00:00 2001 From: c0repwn3r Date: Wed, 12 Jul 2023 11:53:05 -0400 Subject: [PATCH] fix inert functionality --- tfclient/src/nebulaworker_inert.rs | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/tfclient/src/nebulaworker_inert.rs b/tfclient/src/nebulaworker_inert.rs index e356183..e27a5f9 100644 --- a/tfclient/src/nebulaworker_inert.rs +++ b/tfclient/src/nebulaworker_inert.rs @@ -12,4 +12,18 @@ pub enum NebulaWorkerMessage { WakeUp, } -pub fn nebulaworker_main(_config: TFClientConfig, _instance: String, _transmitter: ThreadMessageSender, _rx: Receiver) {} \ No newline at end of file +pub fn nebulaworker_main(_config: TFClientConfig, _instance: String, _transmitter: ThreadMessageSender, rx: Receiver) { + loop { + match rx.recv() { + Ok(msg) => match msg { + NebulaWorkerMessage::WakeUp => { + continue; + }, + NebulaWorkerMessage::Shutdown => { + break; + } + _ => () + } + } + } +}