Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Delay StatusPoller OSCFunc/SkipJack instantiation until server boot #173

Merged
merged 1 commit into from
Sep 27, 2020

Conversation

nhthn
Copy link
Contributor

@nhthn nhthn commented Sep 27, 2020

Purpose and motivation

Fix #172.

Implementation

ScinServerStatusPoller, on initialization, no longer automatically creates its OSCFunc/SkipJack. The creation of these monitoring objects is deferred until the start instance method is called on the ScinServerStatusPoller.

This fixes what appears to be a race condition when creating an OSCFunc during class tree initialization, and also prevents the ScinServerStatusPoller from being broken by a CmdPeriod call between instantiation of the server and booting of the server. It does not yet make the StatusPoller entirely impervious to CmdPeriod.

Types of changes

  • Bug fix
  • Behaviour change

Status

  • This PR is ready for review

@lnihlen
Copy link
Member

lnihlen commented Sep 27, 2020

Thanks for the PR!

@lnihlen lnihlen merged commit 9d8ffc4 into ScintillatorSynth:develop Sep 27, 2020
@nhthn nhthn deleted the topic/status-poller-2 branch November 7, 2020 01:15
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ScinServerStatusPoller stuck in booting stage
2 participants