mirror of
https://github.com/django/daphne.git
synced 2025-04-21 01:02:06 +03:00
Fix for apply_routes: wrap routes in list, if it is not so (#192)
This commit is contained in:
parent
2874a0972c
commit
c4f016b9c2
|
@ -157,7 +157,8 @@ class apply_routes(object):
|
|||
routes = list(map(include, self.routes))
|
||||
else:
|
||||
routes = self.routes
|
||||
|
||||
else:
|
||||
routes = [self.routes]
|
||||
channel_layer.routing = routes
|
||||
channel_layer.router = Router(routes)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user