Procházet zdrojové kódy

(fix) retain reference

Michael Redig před 2 roky
rodič
revize
1860264e3a
1 změnil soubory, kde provedl 1 přidání a 0 odebrání
  1. 1 0
      Sources/SwiftSerial.swift

+ 1 - 0
Sources/SwiftSerial.swift

@@ -222,6 +222,7 @@ public class SerialPort {
             }
         }
         pollSource.resume()
+        self.pollSource = pollSource
         self.readDataStream = stream
     }