mirror of
https://github.com/bbernhard/signal-cli-rest-api.git
synced 2026-05-26 14:44:15 +00:00
fixed small bug in json-rpc reconnect mechanism
* after we successfully reconnected, wait for new data
This commit is contained in:
parent
c7cb9ab13e
commit
af34a0881c
@ -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)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user