Skip to content

Commit

Permalink
Stop using '== True'
Browse files Browse the repository at this point in the history
  • Loading branch information
Silex committed Dec 12, 2016
1 parent c93f191 commit 99219cd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/broadcaster.py
Expand Up @@ -170,7 +170,7 @@ def streamFromSource(self):
while True:
try:
for data in self.sourceStream.iter_content(1024):
if (self.kill == True):
if self.kill:
for client in self.clients + self.webSocketClients:
client.kill = True
return
Expand Down
2 changes: 1 addition & 1 deletion app/httprequesthandler.py
Expand Up @@ -101,7 +101,7 @@ def acceptClients(self):
while True:
clientsock, addr = self.acceptsock.accept()

if (self.kill == True):
if self.kill:
clientsock.close()
return
handlethread = threading.Thread(target = self.handleRequest, args = (clientsock,))
Expand Down

0 comments on commit 99219cd

Please sign in to comment.