[Net] Fix bogus FileAccessNetwork deconstructor.

Now correctly erases old instances.
The code will likely need overhaul anyway to be usable.
It doesn't apply to editor runs, there's a bunch of inconsistencies on
how to clients are handled, and I don't really understand why multiple
instances are created for a single client/server.
This commit is contained in:
Fabio Alessandrelli 2021-04-30 15:52:29 +02:00
parent d091995e05
commit 3acc39095e
1 changed files with 0 additions and 1 deletions

View File

@ -487,7 +487,6 @@ FileAccessNetwork::~FileAccessNetwork() {
FileAccessNetworkClient *nc = FileAccessNetworkClient::singleton; FileAccessNetworkClient *nc = FileAccessNetworkClient::singleton;
nc->lock_mutex(); nc->lock_mutex();
id = nc->last_id++;
nc->accesses.erase(id); nc->accesses.erase(id);
nc->unlock_mutex(); nc->unlock_mutex();
} }