in src/dubbo/remoting/aio/aio_transporter.py [0:0]
def close(self):
"""
Close the server.
"""
if self.is_closed():
return
self._closing = True
try:
self._event_loop.stop()
self._closed = True
except Exception as e:
raise RemotingError("Failed to close the server") from e
finally:
self._closing = False