fixed small bug in json-rpc reconnect mechanism

* after we successfully reconnected, wait for new data
This commit is contained in:
Bernhard B 2026-03-05 20:50:42 +01:00
parent c7cb9ab13e
commit af34a0881c

View File

@ -228,6 +228,8 @@ func (r *JsonRpc2Client) ReceiveData(number string, receiveWebhookUrl string) {
log.Fatal("Unable to reconnect to signal-cli: ", err.Error(), "...aborting")
}
connbuf = bufio.NewReader(r.conn)
log.Info("Successfully reconnected to signal-cli")
continue
}
log.Debug("json-rpc received data: ", str)