Skip to content

Commit c5eb973

Browse files
保存されてなかった
1 parent 57d5067 commit c5eb973

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

NicoSitePlugin2/Client/SegmentServerClient.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,16 @@ public async Task doConnect()
4040

4141
public bool disconnect()
4242
{
43-
_streamReceiver.StopReceiving();
43+
_streamReceiver?.StopReceiving();
4444
return true;
4545
}
4646

4747
public async Task ProcessRawData(byte[] data)
4848
{
49-
49+
if (_streamReceiver == null)
50+
{
51+
return;
52+
}
5053
// データを受信するたびに処理
5154
Console.WriteLine($"Received {data.Length} bytes.");
5255

0 commit comments

Comments
 (0)