Commit be19246
fix: 🐛 guard against negative nc:lock-timeout when computing lockTimeOut
When files_lock is configured with infinite timeout (-1 minutes), the server
sends nc:lock-timeout=-60. Without the guard, lockTimeOut would be set to
lockTime minus 60 seconds — a date in the past — causing clients to display
the lock as already expired.
Only compute lockTimeOut when the value is positive; leave it nil for infinite
locks (zero or negative sentinel values).
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off-by: James Manuel <moodyjmz@users.noreply.github.com>1 parent 4204ead commit be19246
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
472 | 472 | | |
473 | 473 | | |
474 | 474 | | |
475 | | - | |
| 475 | + | |
476 | 476 | | |
477 | 477 | | |
478 | 478 | | |
| |||
0 commit comments