We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b84168d commit 06217afCopy full SHA for 06217af
pywebio/session/threadbased.py
@@ -183,6 +183,9 @@ def _cleanup(self, nonblock=False):
183
# so the `get_current_session()` call in those thread will raise SessionNotFoundException
184
del cls.thread2session[id(t)]
185
186
+ if self.callback_thread:
187
+ del cls.thread2session[id(self.callback_thread)]
188
+
189
def try_best_to_add_item_to_mq(mq, item, try_count=10):
190
for _ in range(try_count):
191
try:
0 commit comments