Thumbnail

rani/matterbridge.git

Clone URL: https://git.buni.party/rani/matterbridge.git

commit bb27c10d87575ee0b988aa9c8c20a5b9aeb9a02f Author: Wim <wim@42.be> Date: Sun Mar 13 01:01:03 2022 +0000 Add busy_timeout which fixes SQLITE_BUSY errors (whatsapp) diff --git a/bridge/whatsapp/helpers.go b/bridge/whatsapp/helpers.go index 030dc2b..b32372c 100644 --- a/bridge/whatsapp/helpers.go +++ b/bridge/whatsapp/helpers.go @@ -927 +927 @@ func isGroupJid(identifier string) bool {  func (b *Bwhatsapp) getDevice() (*store.Device, error) {   device := &store.Device{}   - storeContainer, err := sqlstore.New("sqlite", "file:"+b.Config.GetString("sessionfile")+".db?_foreign_keys=on", nil) + storeContainer, err := sqlstore.New("sqlite", "file:"+b.Config.GetString("sessionfile")+".db?_foreign_keys=on&_pragma=busy_timeout=10000", nil)   if err != nil {   return device, fmt.Errorf("failed to connect to database: %v", err)   }