Skip to content

Commit

Permalink
https://github.com/crystal-lang/crystal/issues/11673
Browse files Browse the repository at this point in the history
  • Loading branch information
BrucePerens committed Dec 31, 2021
1 parent 8cb4187 commit dd6442b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ws_service.cr
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ abstract class WS::Service < WS::Protocol
# Automatically register any derived class that is *not* abstract.
macro inherited
{% if !@type.abstract? %}
WS::Middleware.instance.register(self.path, self)
WS::Middleware.instance.register(self.path, self.as(WS::Service.class))
{% end %}
end

Expand Down

0 comments on commit dd6442b

Please sign in to comment.