Michael Redig 2 лет назад
Родитель
Сommit
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
     }