Skip to content

gui: Avoid unwrapping when fetching images#374

Merged
Insprill merged 2 commits intojpochyla:masterfrom
ptrcnull:image-no-unwrap
Feb 11, 2023
Merged

gui: Avoid unwrapping when fetching images#374
Insprill merged 2 commits intojpochyla:masterfrom
ptrcnull:image-no-unwrap

Conversation

@ptrcnull
Copy link
Copy Markdown
Contributor

On bad connections, one timeout can cause the whole app to crash

ptrcnull and others added 2 commits February 11, 2023 17:00
On bad connections, one timeout can cause the whole app to crash
@ptrcnull
Copy link
Copy Markdown
Contributor Author

thanks for the style fix :)

Copy link
Copy Markdown
Collaborator

@Insprill Insprill left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thank you!

@Insprill Insprill merged commit 04c6261 into jpochyla:master Feb 11, 2023
Insprill pushed a commit that referenced this pull request Mar 22, 2023
* Safer error-handling mechanism

Hi, this is my first time writing Rust, please go easy on me 🙂 Could you make sure I did it correct? I won't be offended if it's not any good.
This error was I think similar to the one found in #374

The error was as follows and it would cause the app to crash and shutdown:

> thread 'main' panicked at 'called Result::unwrap() on an Err value: "SendError(..)"', psst-gui/src/controller/playback.rs:219:51

* Update playback.rs

* Update playback.rs
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.

2 participants