unkyulee / micro-journal

Other
172 stars 4 forks source link

Accidentally tried to sync an empty file, and the system froze #19

Open Gabey8 opened 3 weeks ago

Gabey8 commented 3 weeks ago

I journaled in File 0, and wanted to sync it.

I accidentally fumble-fingered while in the menu, and opened File 6, which is empty.

Without thinking, I hit S to sync. And it just sat there after "sending the file".

There seems to be no way to interrupt the sync, so when I realized my mistake, I waited for a while, then turned the machine off and back on.

Then I went into File 0, returned to the menu, and sync worked fine.

On the one hand, "Oops! Clumsy me!" But on the other hand, I am reminded of a mug I used to have with programming jokes on it. One joke was, "If you write idiot-proof code, an ingenious idiot will come along and break it." Well, today's my day to be the ingenious idiot, lol.

unkyulee commented 3 weeks ago

Ah... probably, when the file size is 0 it must be staying blocked in the code. This is a bug, I will have this fixed in the next release. Thanks for the report!