summaryrefslogtreecommitdiff
path: root/protocols/Steam/src/steam_events.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Steam/src/steam_events.cpp')
-rw-r--r--protocols/Steam/src/steam_events.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/protocols/Steam/src/steam_events.cpp b/protocols/Steam/src/steam_events.cpp
index 434eaed925..cbaf2302ae 100644
--- a/protocols/Steam/src/steam_events.cpp
+++ b/protocols/Steam/src/steam_events.cpp
@@ -14,6 +14,8 @@ int CSteamProto::OnModulesLoaded(WPARAM, LPARAM)
nlu.szSettingsModule = m_szModuleName;
m_hNetlibUser = (HANDLE)CallService(MS_NETLIB_REGISTERUSER, 0, (LPARAM)&nlu);
+ requestQueue = new RequestQueue(m_hNetlibUser);
+
HookEvent(ME_CLIST_PREBUILDCONTACTMENU, &CSteamProto::PrebuildContactMenu);
return 0;
@@ -21,7 +23,7 @@ int CSteamProto::OnModulesLoaded(WPARAM, LPARAM)
int CSteamProto::OnPreShutdown(WPARAM, LPARAM)
{
- //SetStatus(ID_STATUS_OFFLINE);
+ delete requestQueue;
Netlib_CloseHandle(this->m_hNetlibUser);
this->m_hNetlibUser = NULL;