mirror of
https://github.com/debauchee/barrier.git
synced 2026-05-08 06:31:50 +08:00
Some work toward Issue 27 and Issue 319
This commit is contained in:
@@ -346,11 +346,9 @@ CTCPSocket::newJob()
|
||||
void
|
||||
CTCPSocket::sendConnectionFailedEvent(const char* msg)
|
||||
{
|
||||
CConnectionFailedInfo* info = (CConnectionFailedInfo*)malloc(
|
||||
sizeof(CConnectionFailedInfo) + strlen(msg));
|
||||
strcpy(info->m_what, msg);
|
||||
CConnectionFailedInfo* info = new CConnectionFailedInfo(msg);
|
||||
EVENTQUEUE->addEvent(CEvent(getConnectionFailedEvent(),
|
||||
getEventTarget(), info));
|
||||
getEventTarget(), info, CEvent::kDontFreeData));
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
Reference in New Issue
Block a user