Skip to content

Commit

Permalink
Update src/smpp_gateway/router.py
Browse files Browse the repository at this point in the history
Co-authored-by: Tobias McNulty <tobias@caktusgroup.com>
  • Loading branch information
simonkagwi and tobiasmcnulty authored Nov 14, 2024
1 parent 5f7133d commit f7236b1
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/smpp_gateway/router.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,12 @@ class PriorityBlockingRouter(BlockingRouter):
outgoing_message_class = PriorityOutgoingMessage

def new_incoming_message(
self, text, connections, class_=incoming_message_class, **kwargs
self, text, connections, class_=None, **kwargs
):
return super().new_incoming_message(
text, connections, class_=PriorityIncomingMessage, **kwargs
if class_ is None:
class_ = self.incoming_message_class
self.return super().new_incoming_message(
text, connections, class_=class_, **kwargs
)

def new_outgoing_message(
Expand Down

0 comments on commit f7236b1

Please sign in to comment.