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 65945f8 commit 2b09f98Copy full SHA for 2b09f98
src/lib.rs
@@ -325,6 +325,7 @@ impl Node {
325
bind_addrs.extend(resolved_address);
326
}
327
328
+ let runtime = Arc::clone(&self.runtime);
329
self.runtime.spawn_cancellable_background_task(async move {
330
{
331
let listener =
@@ -350,7 +351,7 @@ impl Node {
350
351
352
res = listener.accept() => {
353
let tcp_stream = res.unwrap().0;
- tokio::spawn(async move {
354
+ runtime.spawn_cancellable_background_task(async move {
355
lightning_net_tokio::setup_inbound(
356
Arc::clone(&peer_mgr),
357
tcp_stream.into_std().unwrap(),
0 commit comments