I’ve been playing around with using the self hosting sync server Anki comes bundled with, and while testing it I noticed that I can’t run any commands on a db after I’ve synced because the database is locked. This is a bit of a bummer because I want to be able to modify my cards programmatically, but this would require me to kill the server, make the changes, and restart the server.
I think closing the connection after some of the terminal events for a sync (finish, abort ) would be a way to fix this.
I would submit a pr for this, but due to my inexperience with rust, I was unable to get a build of the sync server running, or admittedly even figure out where to begin.