diff options
Diffstat (limited to 'src/mochiweb/reloader.erl')
-rw-r--r-- | src/mochiweb/reloader.erl | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mochiweb/reloader.erl b/src/mochiweb/reloader.erl index 2ff154ba..6835f8f9 100644 --- a/src/mochiweb/reloader.erl +++ b/src/mochiweb/reloader.erl @@ -78,8 +78,7 @@ code_change(_Vsn, State, _Extra) -> doit(From, To) -> [case file:read_file_info(Filename) of - {ok, FileInfo} when FileInfo#file_info.mtime >= From, - FileInfo#file_info.mtime < To -> + {ok, #file_info{mtime = Mtime}} when Mtime >= From, Mtime < To -> reload(Module); {ok, _} -> unmodified; |