event/SocketEvent: rename Steal() to ReleaseSocket()

This commit is contained in:
Max Kellermann
2020-10-15 16:52:36 +02:00
parent 95bb12880d
commit ff6e434caf
4 changed files with 11 additions and 23 deletions

View File

@@ -573,7 +573,7 @@ ProxyDatabase::Disconnect() noexcept
assert(connection != nullptr);
idle_event.Cancel();
socket_event.Steal();
socket_event.ReleaseSocket();
mpd_connection_free(connection);
connection = nullptr;
@@ -634,7 +634,7 @@ ProxyDatabase::OnIdle() noexcept
LogError(std::current_exception());
}
socket_event.Steal();
socket_event.ReleaseSocket();
mpd_connection_free(connection);
connection = nullptr;
return;