diff --git a/ts3socket.py b/ts3socket.py index 0a49285..bd2904f 100644 --- a/ts3socket.py +++ b/ts3socket.py @@ -39,7 +39,7 @@ def connect(self): self.disconnect() def send(self, msg): - if RECONNECT == False: + if RECONNECT is False: try: return self.sock.send((msg + '\n').encode()) except socket.error as conErr: @@ -50,7 +50,7 @@ def disconnect(self): self.sock.close() def receive(self): - if RECONNECT == False: + if RECONNECT is False: try: return self.sock.recv(BUFFER_SIZE).decode() except socket.error as conErr: @@ -65,7 +65,7 @@ def reconnect(self): self.connect() def recv_all(self): - if RECONNECT == False: + if RECONNECT is False: try: total_data = [] while True: