Browse Source

Fix onError issue.

Justin 2 years ago
parent
commit
1d7e0aed21
1 changed files with 2 additions and 2 deletions
  1. 2 2
      lib/us/vid_us_data_stream_reader.dart

+ 2 - 2
lib/us/vid_us_data_stream_reader.dart

@@ -32,9 +32,9 @@ class VidUsDataStreamReader {
     _buffer = Uint8List.fromList(_data).buffer;
   }
 
-  void onStreamError(String msg) {
+  void onStreamError(msg) {
     _error = true;
-    _errorMsg = msg;
+    _errorMsg = msg.toString();
   }
 
   void onStreamDone() {