forked from 1b-agent/opencadstudio-upstream
Publish automation discovery descriptor immediately
This commit is contained in:
1 parent
31e769a948
commit
922a0d1d30
1 file changed
+1
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user