mirror of
https://github.com/bbernhard/signal-cli-rest-api.git
synced 2026-11-02 09:59:33 +00:00
parent
74253a3a41
commit
80e0f34032
@ -262,7 +262,10 @@ func (r *JsonRpc2Client) ReceiveData(number string, receiveWebhookUrl string) {
|
||||
err = json.Unmarshal([]byte(str), &resp2)
|
||||
if err == nil {
|
||||
if resp2.Id != "" {
|
||||
if responseChan, ok := r.receivedResponsesById[resp2.Id]; ok {
|
||||
r.receivedResponsesMutex.Lock()
|
||||
responseChan, ok := r.receivedResponsesById[resp2.Id]
|
||||
r.receivedResponsesMutex.Unlock()
|
||||
if ok {
|
||||
responseChan <- resp2
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user