Skip to content
This repository has been archived by the owner on Apr 26, 2019. It is now read-only.

Commit

Permalink
SlimDX update & possible multithreading bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
MaulingMonkey committed May 28, 2011
1 parent 98e6615 commit 7e11512
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion UberIRC.Sounds/UberIRC.Sounds.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="SlimDX, Version=2.0.10.43, Culture=neutral, PublicKeyToken=b1b0c32fd1ffe4f9, processorArchitecture=x86" />
<Reference Include="SlimDX" />
<Reference Include="System" />
<Reference Include="System.Core">
<RequiredTargetFramework>3.5</RequiredTargetFramework>
Expand Down
9 changes: 6 additions & 3 deletions UberIRC/NET/IrcConnection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Industry;
using System.Timers;
using Industry;

namespace UberIRC.NET {
public struct IrcConnectionID {
Expand Down Expand Up @@ -133,8 +134,10 @@ class Channel {
public readonly HashSet<IEventListener> Listeners;

public IEnumerable<String> WhosIn( string channel ) {
if ( Channels.ContainsKey(channel) ) return Channels[channel].Users;
else return new string[]{};
lock (Lock) {
if ( Channels.ContainsKey(channel) ) return Channels[channel].Users.ToArray();
else return new string[]{};
}
}

public void Join( string channel ) {
Expand Down

0 comments on commit 7e11512

Please sign in to comment.