On Tue, May 11, 2021 at 09:35:47PM +0200, Johannes Berg wrote: > Using __del__ for any kind of cleanup is not a good idea > as it's not guaranteed to be called at any particular time, > it's only called whenever the next garbage collect cycle > kicks in. > > Use a context manager instead, which basically removes the > need for the try/finally and fixes the reliance on __del__. Thanks, applied. -- Jouni Malinen PGP id EFC895FA _______________________________________________ Hostap mailing list Hostap@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/hostap