From 843fcc973f4cf7b149d4f57732fb66f812115320 Mon Sep 17 00:00:00 2001 From: Adam Chlipala Date: Sun, 29 Mar 2009 11:37:29 -0400 Subject: Redo channels, making them single-client --- lib/js/urweb.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/js/urweb.js') diff --git a/lib/js/urweb.js b/lib/js/urweb.js index c7cecbbf..4daee66d 100644 --- a/lib/js/urweb.js +++ b/lib/js/urweb.js @@ -301,6 +301,9 @@ function listener() { } function rv(chn, parse, k) { + if (chn == null) + return; + if (chn < 0) whine("Out-of-bounds channel receive"); -- cgit v1.2.3