HomePhorge

Aphlict - fix getActiveListenerCount return value

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

Provenance
Pierre MoreauAuthored on Feb 3 2015, 7:00 AM
epriestleyCommitted on Feb 3 2015, 7:01 AM
themackabuPushed on Tue, Mar 25, 8:07 PM
Parents
rP9df4cb37d405: Fix printing with new scroll
Branches
Unknown
Tags
Unknown

Event Timeline