浏览代码

(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
     }