pycrate_osmo.RRCTL: fix wrong operator in RRCTLMsg.match()

This commit is contained in:
Vadim Yanitskiy 2022-02-04 22:43:51 +06:00 committed by Vadim Yanitskiy
parent 07a50e7563
commit c3d9fa8132
1 changed files with 2 additions and 2 deletions

View File

@ -297,8 +297,8 @@ class RRCTLMsg(Envelope):
self['Hdr']['Disc'].set_val(msg_disc)
def match(self, msg_type, msg_disc):
if self['Hdr']['Type'].get_val() is not msg_type:
if self['Hdr']['Type'].get_val() != msg_type:
return False
if self['Hdr']['Disc'].get_val() is not msg_disc:
if self['Hdr']['Disc'].get_val() != msg_disc:
return False
return True