Publish automation discovery descriptor immediately

This commit is contained in:
ramox81 committed 2026-09-15 15:16:06 +03:00
1 parent 31e769a948
commit 922a0d1d30
1 file changed
+1
+1
View File
@@ -52,6 +52,7 @@ fn listen(sender: mpsc::Sender<Envelope>) -> std::io::Result<()> {
}
let mut file = options.open(&path)?;
write!(file, "{descriptor}")?;
drop(file);
let clients = Arc::new(AtomicUsize::new(0));
for stream in listener.incoming().flatten() {
if clients.fetch_add(1, Ordering::SeqCst) >= 8 {