I looked at that and it was easier just to reboot before connecting since the databases would normally show the -wal and -shm files when they were open and in use. There was no way to tell if the databases would be properly closed during the USB connect process. I did try closing the databases to write the information to the database clearing the -wal and -shm files but there was no way to guarantee they would not be re-opened before I triggered the USB connect.
|