How to close a thread from within?

后端 未结 4 1048
日久生厌
日久生厌 2020-12-02 14:16

For every client connecting to my server I spawn a new thread, like this:

# Create a new client
c = Client(self.server.accept(), globQueue[globQueueIndex], g         


        
4条回答
  •  悲&欢浪女
    2020-12-02 15:01

    If you want force stop your thread: thread._Thread_stop() For me works very good.

提交回复
热议问题