Radish alpha
r
Radicle CI broker
Radicle
Git (anonymous pull)
Log in to clone via SSH
fix: no allowed broker events is not an end-of-file situation
Lars Wirzenius committed 1 year ago
commit 01cf7394a909b72d8a36785525bf312f7ce60642
parent d36e68768a47ff3cb03d1165dfb30ca6a4031602
1 file changed +7 -3
modified src/event.rs
@@ -122,10 +122,14 @@ impl NodeEventSource {
                                    result.push(e);
                                }
                            }
-
                            info!("got {} allowed broker events from node event", result.len());
-
                            return Ok(result);
+
                            if !result.is_empty() {
+
                                info!("got {} allowed broker events from node event", result.len());
+
                                return Ok(result);
+
                            }
                        }
-
                        debug!("got event, but did not result in broker events");
+
                        debug!(
+
                            "got event, but did not result in broker events, or none were allowed"
+
                        );
                    }
                    Err(radicle::node::Error::Io(err))
                        if err.kind() == std::io::ErrorKind::ConnectionReset =>