main-grpc: Fix iterator going invalid at destruction time 95/29695/2
authorMarius Vlad <marius.vlad@collabora.com>
Wed, 21 Feb 2024 08:44:54 +0000 (10:44 +0200)
committerMarius Vlad <marius.vlad@collabora.com>
Fri, 23 Feb 2024 16:08:16 +0000 (18:08 +0200)
commita2a302d8aadc1afdae0c13c23144a5acf9d2a8b0
tree5b6bd219ba703cdb3b80710090402c5df7a9cc94
parente7ccf51adc37748d3ca000109d16d0495dc0a7e8
main-grpc: Fix iterator going invalid at destruction time

Apparently, erase() would make the iterator invalid so we need grab
the next one to have the work correctly.

Bug-AGL: SPEC-5077
Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
Change-Id: I290fa1231eb6b37ab63c5f5c0bd8fe90d4363a77
grpc-proxy/main-grpc.cpp