forked from 1b-agent/opencadstudio-upstream
Merge pull request #1290 from ramox81/fix/live-automation-descriptor
This commit is contained in:
commit
5f423c966a
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