We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 09eacfa commit 11b7eb5Copy full SHA for 11b7eb5
src/lib.rs
@@ -313,6 +313,7 @@ impl Node {
313
bind_addrs.extend(resolved_address);
314
}
315
316
+ let runtime = Arc::clone(&self.runtime);
317
self.runtime.spawn_cancellable_background_task(async move {
318
{
319
let listener =
@@ -338,7 +339,7 @@ impl Node {
338
339
340
res = listener.accept() => {
341
let tcp_stream = res.unwrap().0;
- tokio::spawn(async move {
342
+ runtime.spawn_cancellable_background_task(async move {
343
lightning_net_tokio::setup_inbound(
344
Arc::clone(&peer_mgr),
345
tcp_stream.into_std().unwrap(),
0 commit comments