浏览代码

Proper error handling for tight filters

Don't throw an exception when we encounter an unsupported tight
subencoding.
samhed 9 年之前
父节点
当前提交
b2cdd55859
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      include/rfb.js

+ 1 - 2
include/rfb.js

@@ -2011,8 +2011,7 @@ var RFB;
                     } else {
                         // Filter 0, Copy could be valid here, but servers don't send it as an explicit filter
                         // Filter 2, Gradient is valid but not use if jpeg is enabled
-                        // TODO(directxman12): why aren't we just calling '_fail' here
-                        throw new Error("Unsupported tight subencoding received, filter: " + filterId);
+                        this._fail("Unsupported tight subencoding received, filter: " + filterId);
                     }
                     break;
                 case "copy":