await self.server.stop()

This commit is contained in:
Lex Berezhny 2018-12-14 22:31:01 -05:00
parent 7092f40701
commit a16495d06f

View file

@ -200,7 +200,7 @@ class SPVNode:
async def stop(self, cleanup=True):
try:
self.server.stop()
await self.server.stop()
finally:
cleanup and self.cleanup()