Fix inverted logic on socket deadlines