Skip to content

Commit

Permalink
fix Xbox one music freeze
Browse files Browse the repository at this point in the history
  • Loading branch information
LukePulverenti committed Jul 31, 2018
1 parent f1998b6 commit 6961006
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions SocketHttpListener/Net/HttpConnection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -186,12 +186,12 @@ public void BeginReadRequest()
{
if (_reuses == 1)
_timeout = 15000;
_timer.Change(_timeout, Timeout.Infinite);
//_timer.Change(_timeout, Timeout.Infinite);
_stream.BeginRead(_buffer, 0, BufferSize, s_onreadCallback, this);
}
catch
{
_timer.Change(Timeout.Infinite, Timeout.Infinite);
//_timer.Change(Timeout.Infinite, Timeout.Infinite);
CloseSocket();
Unbind();
}
Expand Down Expand Up @@ -238,7 +238,7 @@ private static void OnRead(IAsyncResult ares)

private void OnReadInternal(IAsyncResult ares)
{
_timer.Change(Timeout.Infinite, Timeout.Infinite);
//_timer.Change(Timeout.Infinite, Timeout.Infinite);
int nread = -1;
try
{
Expand Down

0 comments on commit 6961006

Please sign in to comment.