restore ids when closing audio streams
This commit is contained in:
1 parent
7845c74e13
commit
7b91dd1748
1 file changed
+2
@@ -83,6 +83,7 @@ DllExport void Close(int Stream)
|
|||||||
if(it != Streams.end())
|
if(it != Streams.end())
|
||||||
{
|
{
|
||||||
delete it->second;
|
delete it->second;
|
||||||
|
IDs.push(it->first);
|
||||||
Streams.erase(it);
|
Streams.erase(it);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -236,6 +237,7 @@ DllExport void Update(void)
|
|||||||
if(p->second->Closed)
|
if(p->second->Closed)
|
||||||
{
|
{
|
||||||
delete p->second;
|
delete p->second;
|
||||||
|
IDs.push(p->first);
|
||||||
Streams.erase(p++);
|
Streams.erase(p++);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|||||||
Reference in new issue
Block a user