Do not crash application when a single painter fails, just reconnect

This commit is contained in:
timvisee
2018-12-28 22:33:35 +01:00
parent 74d3f16bc8
commit 4f5a0b9274
3 changed files with 31 additions and 14 deletions

View File

@@ -87,8 +87,7 @@ impl Client {
// TODO: make flushing configurable?
// TODO: make buffer size configurable?
self.stream
.flush()
.expect("failed to flush write buffer to server");
.flush()?;
// Everything seems to be ok
Ok(())