ncannasse 10 年 前
コミット
7f637ae167
1 ファイル変更2 行追加0 行削除
  1. 2 0
      hxd/snd/Worker.hx

+ 2 - 0
hxd/snd/Worker.hx

@@ -273,6 +273,8 @@ class Worker extends hxd.Worker<Message> {
 					if( c.next != null ) {
 					if( c.next != null ) {
 						c.res = c.next.res;
 						c.res = c.next.res;
 						c.snd = c.next.snd;
 						c.snd = c.next.snd;
+						if( c.next.channel == chan )
+							cmax--;
 						handleMessage(Stop(c.next.id));
 						handleMessage(Stop(c.next.id));
 						c.next = null;
 						c.next = null;
 					}
 					}