reset the keep_running when run forever is called

This commit is contained in:
Shaun 2016-02-02 18:05:56 +11:00
parent 3c237bafe3
commit 20a762e051

View file

@ -853,6 +853,7 @@ class WebSocketApp(object):
if self.sock:
raise WebSocketException("socket is already opened")
thread = None
self.keep_running = True
try:
self.sock = WebSocket(self.get_mask_key, sockopt=sockopt, sslopt=sslopt)