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())
|
||||
{
|
||||
delete it->second;
|
||||
IDs.push(it->first);
|
||||
Streams.erase(it);
|
||||
}
|
||||
}
|
||||
@@ -236,6 +237,7 @@ DllExport void Update(void)
|
||||
if(p->second->Closed)
|
||||
{
|
||||
delete p->second;
|
||||
IDs.push(p->first);
|
||||
Streams.erase(p++);
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in new issue
Block a user