eric6/Cooperation/Connection.py

changeset 8222
5994b80b8760
parent 8218
7c09585bd960
child 8230
8b5c6896655b
--- a/eric6/Cooperation/Connection.py	Sun Apr 11 16:53:48 2021 +0200
+++ b/eric6/Cooperation/Connection.py	Sun Apr 11 18:45:10 2021 +0200
@@ -240,9 +240,11 @@
             self.readyForUse.emit()
         
         while self.bytesAvailable():
-            if self.__currentDataType == Connection.Undefined:
-                if not self.__readProtocolHeader():
-                    return
+            if (
+                self.__currentDataType == Connection.Undefined and
+                not self.__readProtocolHeader()
+            ):
+                return
             
             if not self.__hasEnoughData():
                 return

eric ide

mercurial