Skip to content

Commit b2f3872

Browse files
committed
f Panic on no runtime after all
1 parent e0bfb64 commit b2f3872

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/event.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,8 @@ where
472472
LdkEvent::PendingHTLCsForwardable { time_forwardable } => {
473473
let locked_runtime = self.tokio_runtime.read().unwrap();
474474
if locked_runtime.as_ref().is_none() {
475-
return;
475+
log_error!(self.logger, "Failed process HTLC forwards: No runtime.");
476+
unreachable!("Failed process HTLC forwards: No runtime.");
476477
}
477478

478479
let forwarding_channel_manager = self.channel_manager.clone();

0 commit comments

Comments
 (0)