pipobscure / NodeJS-AsteriskManager

NodeJS Asterisk Manager API
Other
248 stars 103 forks source link

res multiplies #71

Closed nottula closed 3 years ago

nottula commented 3 years ago

hi, in my script I run "remoteconnection.action ({'action': 'ping'}, function (err, res) {console.log (res)});". remoteconnection is the object of the remote ami. he replies "success" everything works correctly, except that after 2 answers, the variable res has 2 then 4 then 8, 16 etc. etc. entries. for each request I connect and disconnect.

nottula commented 3 years ago

my error, my script is recall with monit and timeout script. tankyou