diff options
author | George Hazan <george.hazan@gmail.com> | 2013-03-06 18:58:49 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-03-06 18:58:49 +0000 |
commit | 665ab2181d58fa5c82f598c1188408f8711b1f0d (patch) | |
tree | 4c362903878a19ec9aaf32bc92a3516a17564b52 /plugins/mRadio/i_cc.inc | |
parent | 7fc9837e1f9bbd0f0687fea96cda8dfbf4c1932b (diff) |
mir_forkthead doesn't return a closeable thread handle, no need to call CreateThread to close it
git-svn-id: http://svn.miranda-ng.org/main/trunk@3907 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/mRadio/i_cc.inc')
-rw-r--r-- | plugins/mRadio/i_cc.inc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/mRadio/i_cc.inc b/plugins/mRadio/i_cc.inc index deb993ec0c..c9364d1e8a 100644 --- a/plugins/mRadio/i_cc.inc +++ b/plugins/mRadio/i_cc.inc @@ -21,7 +21,7 @@ var p:pWideChar;
begin
astrlen:=StrLenW(artist);
-
+
tstrlen:=0;
// if need to remove duplicate
if (title<>nil) and (title^<>#0) then
@@ -159,7 +159,7 @@ begin if PlayFirst=BST_UNCHECKED then
plist.Track:=DBReadWord(ActiveContact,PluginName,optCurElement);
end;
-
+
mFreeMem(ActiveURLw);
ActiveURLw:=plist.GetSong;
end;
@@ -182,7 +182,7 @@ begin ControlCenter(MRC_STATUS,RD_STATUS_NEWSTATION);
if Assigned(plist) then
ControlCenter(MRC_STATUS,RD_STATUS_CONNECT);
- CloseHandle(mir_forkthread(@OpenURL,ActiveURLw));
+ mir_forkthread(@OpenURL,ActiveURLw);
end;
end
// play current from start
@@ -195,7 +195,7 @@ begin // play playlist entry?
else if Assigned(plist) and (ActiveURLw<>nil) and (ActiveURLw^<>#0) then
begin
- CloseHandle(mir_forkthread(@OpenURL,ActiveURLw));
+ mir_forkthread(@OpenURL,ActiveURLw);
end;
end;
@@ -425,7 +425,7 @@ begin mFreeMem(artist);
mFreeMem(title);
end;
-
+
NotifyEventHooks(hhRadioStatus,code,arg);
end;
|