fix syntax

This commit is contained in:
Thomas Kriechbaumer 2016-02-08 20:06:33 +01:00
parent bee1201918
commit d5aa4f017d

View File

@ -160,7 +160,8 @@ class Http2Layer(Layer):
elif isinstance(event, StreamReset): elif isinstance(event, StreamReset):
self.streams[eid].zombie = time.time() self.streams[eid].zombie = time.time()
self.client_reset_streams.append(self.streams[eid].client_stream_id) self.client_reset_streams.append(self.streams[eid].client_stream_id)
self.server_reset_streams.append(self.streams[eid].server_stream_id) if self.streams[eid].server_stream_id if self.streams[eid].server_stream_id:
self.server_reset_streams.append(self.streams[eid].server_stream_id)
if eid in self.streams and event.error_code == 0x8: if eid in self.streams and event.error_code == 0x8:
if is_server: if is_server:
other_stream_id = self.streams[eid].client_stream_id other_stream_id = self.streams[eid].client_stream_id