reset the keep_running when run forever is called
This commit is contained in:
parent
3c237bafe3
commit
20a762e051
1 changed files with 1 additions and 0 deletions
|
@ -853,6 +853,7 @@ class WebSocketApp(object):
|
||||||
if self.sock:
|
if self.sock:
|
||||||
raise WebSocketException("socket is already opened")
|
raise WebSocketException("socket is already opened")
|
||||||
thread = None
|
thread = None
|
||||||
|
self.keep_running = True
|
||||||
|
|
||||||
try:
|
try:
|
||||||
self.sock = WebSocket(self.get_mask_key, sockopt=sockopt, sslopt=sslopt)
|
self.sock = WebSocket(self.get_mask_key, sockopt=sockopt, sslopt=sslopt)
|
||||||
|
|
Loading…
Reference in a new issue