Homec4science

Aphlict - fix getActiveListenerCount return value

Authored by Pierre Moreau <pierre.morrow@free.fr> on Feb 3 2015, 16:00.

Description

Aphlict - fix getActiveListenerCount return value

Summary: Ref T7126. Dictionaries do not have a length property unlike arrays resulting in the getActiveListenerCount() function returning undefined results. Using the length property on the array of keys will work.

Test Plan: Using wscat to generate multiple connections to the server, establish new ones and close others while keeping an eye on the displayed clients.active value.

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: Korvin, epriestley

Maniphest Tasks: T7126

Differential Revision: https://secure.phabricator.com/D11647

Details

Committed
epriestley <git@epriestley.com>Feb 3 2015, 16:01
Pushed
aubortJan 31 2017, 17:16
Parents
rPH9df4cb37d405: Fix printing with new scroll
Branches
Unknown
Tags
Unknown

Event Timeline

epriestley <git@epriestley.com> committed rPHa424fec7bb3e: Aphlict - fix getActiveListenerCount return value (authored by Pierre Moreau <pierre.morrow@free.fr>).Feb 3 2015, 16:01