mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-02 11:19:28 +00:00
reset error counter on success
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@786 a93c3328-9c30-0410-af19-c9cd2b2d52af
This commit is contained in:
parent
31ca630edc
commit
016d4cd452
@ -128,6 +128,7 @@ static int __pri_lpwrap_read(struct pri *pri, void *buf, int buflen)
|
|||||||
zap_clear_flag(spri, LPWRAP_PRI_READY);
|
zap_clear_flag(spri, LPWRAP_PRI_READY);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
spri->errs = 0;
|
||||||
res = (int)len;
|
res = (int)len;
|
||||||
memset(&((unsigned char*)buf)[res],0,2);
|
memset(&((unsigned char*)buf)[res],0,2);
|
||||||
res+=2;
|
res+=2;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user