|
@@ -271,7 +271,8 @@ class Server(object):
|
|
|
|
|
|
self.connection_handler = []
|
|
self.connection_handler = []
|
|
|
|
|
|
-
|
|
+
|
|
|
|
+
|
|
atexit.register(self.shutdown)
|
|
atexit.register(self.shutdown)
|
|
|
|
|
|
def make_socket(self):
|
|
def make_socket(self):
|
|
@@ -323,7 +324,7 @@ class Server(object):
|
|
this method can be called synchronous and calls the asynchronous
|
|
this method can be called synchronous and calls the asynchronous
|
|
shutdown method.
|
|
shutdown method.
|
|
"""
|
|
"""
|
|
- curio.run(self.shutdown)
|
|
+ curio.run(self.async_shutdown)
|
|
|
|
|
|
async def async_shutdown(self):
|
|
async def async_shutdown(self):
|
|
"""
|
|
"""
|