Skip to content

Commit 61f0fb9

Browse files
mkschulzeclaude
andcommitted
fix: initialize Winsock before HTTP server list fetch
socket() returned INVALID_SOCKET because WSAStartup was never called on the run thread. In plugin mode some DAWs (e.g. Bitwig) already initialize Winsock, masking the bug. Reaper and standalone do not. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 205c831 commit 61f0fb9

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

juce/NinjamRunThread.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
#include "ui/ui_state.h"
77
#include "net/server_list.h"
88
#include "video/VideoCompanion.h"
9+
#include "jnetlib/util.h"
910

1011
#include <chrono>
1112
#include <mutex>
@@ -456,6 +457,7 @@ void NinjamRunThread::updateSessionAndVuSnapshot(NJClient* client)
456457
//==============================================================================
457458
void NinjamRunThread::run()
458459
{
460+
JNL::open_socketlib(); // Ensure Winsock is initialized for HTTP fetches
459461
lastStatus_ = NJClient::NJC_STATUS_DISCONNECTED;
460462

461463
// Set up callbacks

src/build_number.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
#pragma once
2-
#define JAMWIDE_BUILD_NUMBER 187
2+
#define JAMWIDE_BUILD_NUMBER 192

0 commit comments

Comments
 (0)