Skip to content

Commit

Permalink
更新:在ondisconnect事件中加入setcallback,以修复偶尔出现事件被释放导致的崩溃问题。
Browse files Browse the repository at this point in the history
  • Loading branch information
hubertwu1976 committed May 23, 2017
1 parent b915cab commit 0a5f66a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions Proxy/CTPQuote.cs
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ private void CTPOnFrontDisconnected(int nReason)
{
this.IsLogin = false;
_OnRspUserLogout?.Invoke(this, new IntEventArgs { Value = nReason });
SetCallBack();
}

private void CTPOnRspError(ref CThostFtdcRspInfoField pRspInfo, int nRequestID, bool bIsLast)
Expand Down
1 change: 1 addition & 0 deletions Proxy/CTPTrade.cs
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ private void CTPOnFrontDisconnected(int nReason)
{
this.IsLogin = false;
_OnRspUserLogout?.Invoke(this, new IntEventArgs { Value = nReason });
SetCallBack();
}

private void CTPOnRspUserLogin(ref CThostFtdcRspUserLoginField pRspUserLogin, ref CThostFtdcRspInfoField pRspInfo, int nRequestID, bool bIsLast)
Expand Down
4 changes: 2 additions & 2 deletions Proxy/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// 可以指定所有值,也可以使用以下所示的 "*" 预置版本号和修订号
//通过使用 "*",如下所示:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyVersion("2017.5.23.0")]
[assembly: AssemblyFileVersion("2017.5.23.0")]

0 comments on commit 0a5f66a

Please sign in to comment.