فهرست منبع

(fix) retain reference

Michael Redig 2 سال پیش
والد
کامیت
1860264e3a
1فایلهای تغییر یافته به همراه1 افزوده شده و 0 حذف شده
  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
     }