bhcli

A TUI for chatting on LE PHP Chats (onion)
git clone https://git.dasho.dev/n0tr1v/bhcli.git
Log | Files | Refs | README

commit 8bd568784a85730f1c76787c4515c24b1fd97912
parent 538ce6f25c64b8f818947cda9a63b93c6f6c579d
Author: n0tr1v <n0tr1v@protonmail.com>
Date:   Fri,  7 Apr 2023 00:38:45 -0700

cleanup

Diffstat:
Msrc/main.rs | 5++---
1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/main.rs b/src/main.rs @@ -524,7 +524,7 @@ impl LeChatPHPClient { let sig = Arc::clone(sig); let tx = self.tx.clone(); let members_tag = self.config.members_tag.clone(); - let h = thread::spawn(move || loop { + thread::spawn(move || loop { let (_stream, stream_handle) = OutputStream::try_default().unwrap(); let source = Decoder::new_mp3(Cursor::new(SOUND1)).unwrap(); @@ -645,8 +645,7 @@ impl LeChatPHPClient { recv(&exit_rx) -> _ => return, recv(&timeout) -> _ => {}, } - }); - h + }) } fn get_msgs(&mut self) -> anyhow::Result<ExitSignal> {