From 9e1f659e33301d6fe0b14c4ef09233840502363a Mon Sep 17 00:00:00 2001 From: Lukas Holecek Date: Apr 14 2021 12:02:42 +0000 Subject: Fix disconnecting messaging socket using stomp Avoids issue: https://github.com/jasonrbriggs/stomp.py/issues/323 --- diff --git a/waiverdb/utils.py b/waiverdb/utils.py index 115713e..db2bb94 100644 --- a/waiverdb/utils.py +++ b/waiverdb/utils.py @@ -91,7 +91,7 @@ def stomp_connection(): raise RuntimeError('stomp was configured to publish messages,, ' 'but connection is not configured in STOMP_CONFIGS') conn = stomp.Connection(**configs['connection']) - conn.connect(**configs.get('credentials', {})) + conn.connect(wait=True, **configs.get('credentials', {})) try: yield conn finally: