File tree Expand file tree Collapse file tree 3 files changed +8
-2
lines changed
socket_mode/websocket_client Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -278,6 +278,9 @@ <h1 class="title">Module <code>slack_sdk.socket_mode.websocket_client</code></h1
278278 self.logger.info("Stopped receiving messages from a connection")
279279 except Exception as e:
280280 self.logger.exception(f"Failed to start or stop the current session: {e}")
281+ # To let the monitoring job detect the connection issue, closing this session
282+ if self.current_session is not None:
283+ self.current_session.close()
281284
282285 def _monitor_current_session(self):
283286 if self.current_app_monitor_started:
@@ -560,6 +563,9 @@ <h2 class="section-title" id="header-classes">Classes</h2>
560563 self.logger.info("Stopped receiving messages from a connection")
561564 except Exception as e:
562565 self.logger.exception(f"Failed to start or stop the current session: {e}")
566+ # To let the monitoring job detect the connection issue, closing this session
567+ if self.current_session is not None:
568+ self.current_session.close()
563569
564570 def _monitor_current_session(self):
565571 if self.current_app_monitor_started:
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ <h1 class="title">Module <code>slack_sdk.version</code></h1>
2828< span > Expand source code</ span >
2929</ summary >
3030< pre > < code class ="python "> """Check the latest version at https://pypi.org/project/slack-sdk/"""
31- __version__ = "3.27.0 "</ code > </ pre >
31+ __version__ = "3.27.1 "</ code > </ pre >
3232</ details >
3333</ section >
3434< section >
Original file line number Diff line number Diff line change 11"""Check the latest version at https://pypi.org/project/slack-sdk/"""
2- __version__ = "3.27.0 "
2+ __version__ = "3.27.1 "
You can’t perform that action at this time.
0 commit comments