Fix a bug that prevented the active sockets list from being updated properly.