From 9f30d149060dbba091075f10b3c42e873bf2ba29 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Thu, 30 Aug 2018 22:28:31 +0200 Subject: P2: Fix check if ports exist --- libs/surfaces/push2/push2.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/surfaces/push2/push2.cc b/libs/surfaces/push2/push2.cc index b024b6404f..baef27ed5f 100644 --- a/libs/surfaces/push2/push2.cc +++ b/libs/surfaces/push2/push2.cc @@ -1160,7 +1160,7 @@ Push2::pad_filter (MidiBuffer& in, MidiBuffer& out) const void Push2::port_registration_handler () { - if (!_async_in && !_async_out) { + if (!_async_in || !_async_out) { /* ports not registered yet */ return; } -- cgit v1.2.3