Skip to content

Conversation

@Hywan
Copy link
Contributor

@Hywan Hywan commented Jan 30, 2026

That's a lot of panics. This patch fixes a panic raised by JoinError:into_panic when the JoinError represents a cancellation instead of a panic.


@Hywan Hywan force-pushed the fix-runtime-panic branch from 9a081a7 to eda9841 Compare January 30, 2026 12:39
That's a lot of panics. This patch fixes a panic raised by
`JoinError:into_panic` when the `JoinError` represents a cancellation
instead of a panic.
@Hywan Hywan force-pushed the fix-runtime-panic branch from eda9841 to 3086626 Compare January 30, 2026 12:39
Hywan added a commit to Hywan/matrix-rust-sdk that referenced this pull request Jan 30, 2026
This patch replaces the `interact(…).unwrap()` by a proper error.

So far, `interact()` was only returning `InteractError::Panic`
despites `InteractError::Aborted` exists. With
deadpool-rs/deadpool#461, we now get
`InteractError::Aborted` when the SDK is shutdown, sometimes. This
results in hitting the `unwrap` and having a panic again. This patch
solves the problem by changing the `unwrap` to a proper error. Note: in
case of `InteractError::Panic`, we continue to panic.

This patch makes sense with or without the merge of the PR on
`deadpool`.
Hywan added a commit to matrix-org/matrix-rust-sdk that referenced this pull request Jan 30, 2026
This patch replaces the `interact(…).unwrap()` by a proper error.

So far, `interact()` was only returning `InteractError::Panic`
despites `InteractError::Aborted` exists. With
deadpool-rs/deadpool#461, we now get
`InteractError::Aborted` when the SDK is shutdown, sometimes. This
results in hitting the `unwrap` and having a panic again. This patch
solves the problem by changing the `unwrap` to a proper error. Note: in
case of `InteractError::Panic`, we continue to panic.

This patch makes sense with or without the merge of the PR on
`deadpool`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Panicking when dropping deadpool-runtime

1 participant