Mostly match MxStreamer::Close

This commit is contained in:
Christian Semmler 2023-12-29 18:40:54 -05:00
parent 562d6a966e
commit 56687e86fb
No known key found for this signature in database
GPG Key ID: 086DAA1360BEEE5C

View File

@ -79,14 +79,10 @@ MxLong MxStreamer::Close(const char* p_name)
if (!p_name || !strcmp(p_name, c->GetAtom().GetInternal())) { if (!p_name || !strcmp(p_name, c->GetAtom().GetInternal())) {
m_openStreams.erase(it); m_openStreams.erase(it);
if (!c->FUN_100c20d0(ds)) { if (c->FUN_100c20d0(ds))
MxStreamerNotification notif(MXSTREAMER_DELETE_NOTIFY, NULL, c);
NotificationManager()->Send(this, &notif);
}
else {
delete c; delete c;
} else
NotificationManager()->Send(this, &MxStreamerNotification(MXSTREAMER_DELETE_NOTIFY, NULL, c));
return SUCCESS; return SUCCESS;
} }