forked from joejulian/gio
io/router: remove panics in clipboardQueue
Since the Process* methods on clipboardQueue are called while decoding the ops, no need to recheck for the op type. Signed-off-by: Pierre Curto <pierre.curto@gmail.com>
This commit is contained in:
+2
-2
@@ -140,9 +140,9 @@ func (q *Router) collect() {
|
||||
}
|
||||
q.profHandlers[op.Tag] = struct{}{}
|
||||
case opconst.TypeClipboardRead:
|
||||
q.cqueue.ProcessReadClipboard(encOp.Data, encOp.Refs)
|
||||
q.cqueue.ProcessReadClipboard(encOp.Refs)
|
||||
case opconst.TypeClipboardWrite:
|
||||
q.cqueue.ProcessWriteClipboard(encOp.Data, encOp.Refs)
|
||||
q.cqueue.ProcessWriteClipboard(encOp.Refs)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user