Skip to content

Commit

Permalink
Don't reload certificats if they didn't change
Browse files Browse the repository at this point in the history
The modified check had the wrong comparison.
  • Loading branch information
askmeaboutlo0m committed Nov 21, 2024
1 parent 8ca4ec4 commit c1d175d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ Unreleased Version 2.2.2-pre
* Fix: Work around a crash on Android that sometimes occurs when putting your palm on the screen, which somehow leads to touch events with zero contact points. Thanks Mav for reporting.
* Fix: Uncap aspect ratio on older Android versions. Thanks Molderche for reporting.
* Fix: Work around modifier keys not registering when using a tablet on Wayland. Thanks Absolute Goober for reporting.
* Server Fix: Don't pointlessly reload server certificates if they didn't change. Thanks Liz for reporting.

2024-11-06 Version 2.2.2-beta.4
* Fix: Solve rendering glitches with selection outlines that happen on some systems. Thanks xxxx for reporting.
Expand Down
2 changes: 1 addition & 1 deletion src/libserver/sslserver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ bool SslServer::reloadCertChain()
return false;
}

if(!m_certLastMod.isNull() && fi.lastModified() < m_certLastMod) {
if(!m_certLastMod.isNull() && fi.lastModified() <= m_certLastMod) {
// Certificate file hasn't been modified
return true;
}
Expand Down

0 comments on commit c1d175d

Please sign in to comment.