Skip to content

Commit 3a808a5

Browse files
authored
Merge pull request #713 from qsb-dev/dev
1.4.1
2 parents 576011d + 4f88a93 commit 3a808a5

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

QSB/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"author": "Nebula, John, Alek, & Rai",
55
"name": "Quantum Space Buddies",
66
"uniqueName": "Raicuparta.QuantumSpaceBuddies",
7-
"version": "1.4.0",
7+
"version": "1.4.1",
88
"owmlVersion": "2.14.0",
99
"dependencies": [ "JohnCorby.VanillaFix" ],
1010
"pathsToPreserve": [ "debugsettings.json" ],

SteamTransport/Server.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
using Steamworks;
33
using System;
44
using System.Collections.Generic;
5+
using System.Linq;
56

67
namespace SteamTransport;
78

@@ -102,7 +103,8 @@ public void Receive()
102103
{
103104
var ppOutMessages = new IntPtr[Util.MaxMessages];
104105

105-
foreach (var conn in _conns)
106+
var connList = _conns.ToList();
107+
foreach (var conn in connList)
106108
{
107109
var numMessages = SteamNetworkingSockets.ReceiveMessagesOnConnection(conn, ppOutMessages, ppOutMessages.Length);
108110
for (var i = 0; i < numMessages; i++)
@@ -115,7 +117,8 @@ public void Receive()
115117

116118
public void Flush()
117119
{
118-
foreach (var conn in _conns)
120+
var connList = _conns.ToList();
121+
foreach (var conn in connList)
119122
{
120123
var result = SteamNetworkingSockets.FlushMessagesOnConnection(conn);
121124
if (result != EResult.k_EResultOK)

0 commit comments

Comments
 (0)