meganz / sdk

MEGA C++ SDK
BSD 2-Clause "Simplified" License
1.32k stars 504 forks source link

Session resume with megasimplesync #2654

Open andruska opened 8 months ago

andruska commented 8 months ago

I'm testing the MegaSDK with the megasimplesync sample app. Megasilmplesync logs in, creates a new session, creates cache files in the directory where it was started and starts syncing. If I kill the app (-9) and start it again with the same local and remote folders, it will add a new session and another cache files.

In the log, I see that it still seems to be trying to restore the session, but it doesn't succeed.

...
[22:28:12][debug] Initial scan finished. New / modified files: 0
[22:28:12][debug] Sync autoresumed: mP1qwjzosQQ /data/data/org.gnu.emacs/files/Org fsfp= 66360 error = 0
[22:28:12][debug] Node is not syncable for sync add
[22:28:12][err] Sync could not be added! -12 syncError = 32

Is there any way to solve the session autoresume here?