IntellectualSites / ClipboardConnect

Handles clipboards for players across the network
GNU General Public License v3.0
3 stars 2 forks source link

Handle RedisConnectionException in SyncService #18

Closed TheMeinerLP closed 9 months ago

TheMeinerLP commented 10 months ago

Proposed changes

The SyncService class is updated to handle potential RedisConnectionException. When this exception occurs, an error message is logged and the plugin is disabled. Separate catch branches have been added to manage different types of RedisConnectionException for better error handling and troubleshooting.

Types of changes

What types of changes does your code introduce to this project? Put an x in the boxes that apply

Checklist

Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.

Further comments

If this is a relatively large or complex change, kick off the discussion by explaining why you chose the solution you did and what alternatives you considered, etc...