1
0

cUrlClient: Exported to Lua API.

This commit is contained in:
Mattes D
2016-08-23 13:20:43 +02:00
parent 74918ce805
commit 5ca371bb9a
7 changed files with 639 additions and 2 deletions

View File

@@ -322,6 +322,11 @@ void cTCPLinkImpl::EventCallback(bufferevent * a_BufferEvent, short a_What, void
{
ASSERT(a_Self != nullptr);
cTCPLinkImplPtr Self = static_cast<cTCPLinkImpl *>(a_Self)->m_Self;
if (Self == nullptr)
{
// The link has already been freed
return;
}
// If an error is reported, call the error callback:
if (a_What & BEV_EVENT_ERROR)