packet_size -> incoming_packet_length

This commit is contained in:
Scott Shawcroft 2021-04-08 13:04:51 -07:00 committed by GitHub
parent d43c4649dd
commit e377d1fb2c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -87,7 +87,7 @@ class MIDIService(Service):
Returns the number of bytes written into ``buf``."""
if self._in_buffer is None:
self._in_buffer = bytearray(self._raw.packet_size)
self._in_buffer = bytearray(self._raw.incoming_packet_length)
i = 0
while i < length:
if self._in_index < self._in_length: