Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update/fix HasSyncWorker method (#444)
This will prevent a bunch of errors (mostly harmless, main downside is that it would allow duplicate sync workers to be registered). - The method we were called is no longer static, so we need to get the instance of `SyncSerialization` - `SyncSerialization` was moved from Client to Common, but it does not really matter as we need to get the instance from Client anyway - Added code to get the field holding `SyncSerialization` instance, with additional checks to make sure it's not null, the field is static, and the actual instance is not null - Changed the code to access the method to use the type of the field we've accessed, rather than using the full path - Added code to check if the method is static and show a warning if it is (as we're expecting it to be non-static) - Simplified error logging by using a local function that will call `Log.Error` with the same text at the beginning, rather than that text being copy-pasted all the time
- Loading branch information